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.
the nullifier: hash of [commitment, index, signature] as decimal string 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. this value is used to derive the public_key for the commitment.
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 CircomUtxo object implementation of a Utxo.
A string representation of the parts that make up a utxo.
parts - Curve value, e.g. Bn254, Bls381, Ed25519, etc. value represented as string. parts - Backend value, e.g. arkworks or circom. value represented as string. parts - Amount of atomic units, e.g. ETH in wei amounts or DOT in 10^12 decimals. value represented as uint. 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