Utxos are objects used to represent ownership of value within a VAnchor instance. The input Utxos to a VAnchor transaction represent the spending a previously created Utxo.
Returns commitment for this UTXO
the poseidon hash of [chainId, amount, pubKey, blinding]
the index configured on this UTXO. Output UTXOs generated before they have been inserted in a tree.
Utxos used as inputs are expected to have the index
the nullifier: hash of [commitment, index, signature] where signature = hash([secret key, commitment, index])
the public key used for generating the commitment. If the utxo is configured with a secret_key, this value should be poseidonHash(secret_key)
the secret_key AKA private_key used in the nullifier.
Encrypt UTXO data using the current keypair.
This is used in the externalDataHash calculations so the funds for this deposit
can only be spent by the owner of
0x-prefixed hex string with data
secrets - an array of secret values represented in the utxo
The Utxo object with appropriately configured inner wasm instance.
A string representation of the parts that make up a utxo, split by '&'.
parts - Curve value, e.g. Bn254, Bls381, Ed25519, etc. parts - Backend value, e.g. arkworks or circom parts - Amount in atomic units, e.g. ETH in wei amounts or DOT in 10^12 decimals parts - TypedChainId, the hex value of the calculated typed chain id parts - Blinding, secret random value parts - PublicKey, the "publicKey = hash(privateKey)" value which indicates ownership for a utxo. parts Optional - EncryptionKey, the public key of "publicKey = encryptionScheme(privateKey)" value used for messaging. parts Optional - PrivateKey, the secret key component correlated to the above values. parts Optional - Index, the leaf index if the utxo has been inserted in a merkle tree
Generated using TypeDoc