Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Motivation

...

It can be found in coop.rchain.casper.util.rholang. Produces the necessary tools to insert a contract in the registry.

$ sbt runMain coop.rchain.casper.util.rholang.RegistrySigGen contractName [timestamp] [privateKey] [unforgeableName]

Steps

Generate a Secp256k1 key pair

...

The contract is inserted in the registry by using the system call `rho:registry:insertSigned:ed25519` secp256k1` like in the code below:

new
MakeMint, rs(`rho:registry:insertSigned:ed25519`secp256k1`), uriOut
in {
contract MakeMint(...) = { ... } |
  rs!(
"d9ba2075d355755060205605f4cdbd5ecd3cce5ed1f39690f34772f7c9aa30ab".hexToBytes(),
(9223372036854775807, bundle+{*MakeMint}),
"36229e3f4530c15f3b7c1d9165369201b70b4673289a003652af14b436b20a275d5909d6dfbbd06e685292d39eadf3af11db6f882dcc78ef0b794e6da0ad6109".hexToBytes(),
*uriOut)
}

...