Rotate
Ask AI
Rotate replaces the commit of account by a new one: two new roots, hex encoded, and their height. The public key bound to the account stays. Nothing checks the new roots any more than Register checks the first ones.
The request must be signed with one-time key number leaf of both current trees: the proofs are those of qrc.RotateMessage for these arguments, with the account written as the chain writes it (lower case). Proofs against the replaced trees are refused afterwards. The registry cannot see inside new roots: new trees must not reuse the old keys. The Rotated event reports the new generation; its leaf belongs to the one before.
A signed rotation stays valid until its leaf is spent or the account rotates: only another rotation can cancel it.
Anyone may send the transaction. Whoever sends it pays the storage deposit of the bytes it adds and receives the refund of the bytes it frees. In a transaction, the two proofs are written in base64, which the chain decodes before the call.
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 "Rotate" -args $'' -args $'' -args $'' -args $'' -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 "Rotate" -args $'' -args $'' -args $'' -args $'' -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