Module nut11

Module nut11 

Source
Expand description

NUT-11: Pay to Public Key (P2PK)

https://github.com/cashubtc/nuts/blob/main/11.md

Modules§

serde_p2pk_witness
Serde utils for P2PK Witness

Structs§

Conditions
P2PK and HTLC spending conditions
EnforceSigFlag
Enforce Sigflag info
P2PKWitness
P2Pk Witness

Enums§

Error
Nut11 Error
SigFlag
Signature flag
SpendingConditions
Spending Conditions
Tag
Tag
TagKind
P2PK and HTLC Spending condition tags

Functions§

enforce_sig_flag
Get the signature flag that should be enforced for a set of proofs and the public keys that signatures are valid for
valid_signatures
Returns count of valid signatures (each public key is only counted once) Returns error if the same pubkey has multiple valid signatures