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.
Static
Private
wasmStatic
decryptStatic
deserializeThe Utxo object with appropriately configured inner wasm instance.
A string representation of the parts that make up a utxo, split by '&'.
parts[0] - Curve value, e.g. Bn254, Bls381, Ed25519, etc. parts[1] - Backend value, e.g. arkworks or circom parts[2] - Amount in atomic units, e.g. ETH in wei amounts or DOT in 10^12 decimals parts[3] - TypedChainId, the hex value of the calculated typed chain id parts[4] - Blinding, secret random value parts[5] - PublicKey, the "publicKey = hash(privateKey)" value which indicates ownership for a utxo. parts[6] Optional - EncryptionKey, the public key of "publicKey = encryptionScheme(privateKey)" value used for messaging. parts[7] Optional - PrivateKey, the secret key component correlated to the above values. parts[8] Optional - Index, the leaf index if the utxo has been inserted in a merkle tree
Static
generateGenerated using TypeDoc
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.