Register
Ask AI
Register stores the Quantum Recovery Commit of the calling account: the roots of its SHA-256 and Keccak-256 trees, hex encoded, and their height.
An account registers once. Its usual key has no say over the commit afterwards; only the one-time keys can replace it, through Rotate.
A registration can never be corrected or withdrawn, and nothing here checks that the roots are a SHA-256 tree and a Keccak-256 tree of the given height: derive both roots and the height from the kit, in this order, and check them before sending. The caller must be the account itself, in a direct call or in a script it runs; a session key is refused.
Command
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/nym-rootlatch001/qrcregistry/v1" -func "Register" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/nym-rootlatch001/qrcregistry/v1" -func "Register" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx