ChainCashLabs / chaincash-rs

ChainCash Server: Free Banking for Everyone!
Creative Commons Zero v1.0 Universal
6 stars 4 forks source link

Add spend note transaction builder #41

Closed ross-weir closed 1 month ago

ross-weir commented 9 months ago

Spending a note:

In note Context vars: 0: 0 byte (>= 0 means spend, also encodes note output index in outputs, which allows multiple note spends in single tx) 1: GroupElement, a of signature 2: ByteArray, z of signature 3: ByteArray, avltree insert proof


Out note


Transaction structure Inputs: n: note in

Outputs: n: note out

Data inputs: 0: reserve box that holds the nft that was inserted into avltree of out note


Store Will likely need to add a SignerService to the store that has a method like signers().restore_prover(&note): BatchAVLProver in order to sign the note and insert values. Or maybe makes sense to have it on notes like notes().restore_prover(note_id)

kushti commented 4 months ago

Hello. kushti I am a dev who is interested in your issue Could you give me a chance to work with you?

Sure, assigned you. Any help needed ?