Skip to content

odradev/casper-copy-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casper Copy Key

This is a simple Casper Session script that copies a value from source named key to target named key.

To use it you have to define three arguments:

  • source_key - the key from which the value will be copied,
  • target_key - the key to which the value will be copied,
  • allow_overwrite_target - a boolean value that determines if the target key can be overwritten.

Note that it copies only the Key not the value underneeth it. It means that both source_key and target_key will point to the same value after the script is executed.

Preparation

Install wasm32 target.

rustup target add wasm32-unknown-unknown

Build

Build the WASM file.

just build

Use

Deploy the wasm file to the chain.

just deploy secret_key.pem "source_package_hash" "target_package_hash" false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published