Versions in this module Expand all Collapse all v0 v0.0.1 Aug 16, 2023 Changes in this version + const NotConnected + var Nil = Chain + func CommonInviter(c1, c2 Chain) (level int) + func EqualBlocks(b1, b2 Block) bool + func Hops(lhs, rhs Chain) (int, int) + func NewVerifyBlock(pinCode int) (Block, Block) + func SameInviter(c1, c2 Chain) bool + func SameRoot(c1, c2 Chain) bool + type Block struct + HashToPrev []byte + InviteePubKey crypto.PubKey + InvitersSignature crypto.Signature + Position int + func NewBlockFromData(d []byte) (b Block) + func (b Block) Bytes() []byte + func (b Block) ExcludeSign() Block + func (b Block) VerifySign(invitersPubKey crypto.PubKey) bool + type Chain struct + Blocks []Block + func NewChainFromData(d []byte) (c Chain) + func NewRootChain(rootPubKey crypto.PubKey) Chain + func (c Chain) Bytes() []byte + func (c Chain) Challenge(pinCode int, f func(d []byte) crypto.Signature) bool + func (c Chain) Clone() Chain + func (c Chain) Hops(their Chain) (int, int) + func (c Chain) Invite(invitersKey crypto.Key, inviteesPubKey crypto.PubKey, position int) (nc Chain) + func (c Chain) IsInviterFor(invitee Chain) bool + func (c Chain) IsNil() bool + func (c Chain) LeafPubKey() crypto.PubKey + func (c Chain) Len() int + func (c Chain) OneHop(their Chain) bool + func (c Chain) Verify() bool + type Pair struct + Chain1 Chain + Chain2 Chain + func (p Pair) CommonInviter() int + func (p Pair) Hops() (int, int) + func (p Pair) OneHop() bool