Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretFromSpendingCondition ¶ added in v0.3.0
func NewSecretFromSpendingCondition(spendingCondition SpendingCondition) (string, error)
func SerializeSecret ¶
func SerializeSecret(secret WellKnownSecret) (string, error)
SerializeSecret returns the json string to be put in the secret field of a proof
Types ¶
type SecretData ¶ added in v0.3.0
type SecretKind ¶ added in v0.3.0
type SecretKind int
const ( AnyoneCanSpend SecretKind = iota P2PK HTLC )
func (SecretKind) String ¶ added in v0.3.0
func (kind SecretKind) String() string
type SpendingCondition ¶ added in v0.3.0
type SpendingCondition struct { Kind SecretKind Data string Tags [][]string }
type WellKnownSecret ¶
type WellKnownSecret struct { Kind SecretKind Data SecretData }
func DeserializeSecret ¶
func DeserializeSecret(serializedSecret string) (WellKnownSecret, error)
DeserializeSecret returns Well-known secret struct. It returns error if it's not valid according to NUT-10
Click to show internal directories.
Click to hide internal directories.