Documentation ¶
Index ¶
- Constants
- func InvariableMarshal(inv Invariable) ([]byte, *errors.Error)
- func InvariableSign(inv Invariable, pri ki.PRI) *errors.Error
- func InvariableVerify(inv Invariable) *errors.Error
- type Chain
- type Height
- type IRope
- type Invariable
- type KID
- type Knot
- type Lead
- type Nonce
- type Signature
- type Signing
- type Template
- type Timestamp
- type Type
- type Version
Constants ¶
View Source
const ( KnotType Type = "HOTU.KNOT" KnotVersion Version = DefaultVersion )
Variables ¶
This section is empty.
Functions ¶
func InvariableMarshal ¶
func InvariableMarshal(inv Invariable) ([]byte, *errors.Error)
func InvariableSign ¶
func InvariableSign(inv Invariable, pri ki.PRI) *errors.Error
func InvariableVerify ¶
func InvariableVerify(inv Invariable) *errors.Error
Types ¶
type Invariable ¶
type Knot ¶
type Knot struct { Type Type `json:"t"` Version Version `json:"v"` Vn vn.ID `json:"vn"` Chain Chain `json:"c"` Height Height `json:"h"` Invariable *Lead `json:"i"` Previous KID `json:"p"` Signature *Signature `json:"s"` }
func (*Knot) GetSignature ¶
func (*Knot) GetVersion ¶
type Signature ¶
type Signature struct { Nonce Nonce `json:"nonce"` Timestamp Timestamp `json:"timestamp"` Signer ki.ADR `json:"signer"` Pub ki.PUB `json:"pub"` Hash string `json:"hash"` Signature []byte `json:"signature"` }
func NewSignature ¶
func NewSignature() *Signature
type Signing ¶
type Signing struct {
// contains filtered or unexported fields
}
func NewSigning ¶
func NewSigning() *Signing
type Template ¶
type Template struct { Type Type `json:"t"` Version Version `json:"v"` Vn vn.ID `json:"vn"` Signature *Signature `json:"s"` }
func (*Template) GetSignature ¶
func (*Template) GetVersion ¶
func (*Template) SetSignature ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.