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

RegistrySigGen uses function Ed25519Secp256k1.newKeyPair to generate a new key pair for each contract inserted in the registry.

Produce a nonce

The contracts in casper use the maxLong nonce 9223372036854775807.

...