Documentation ¶ Index ¶ Constants func New(pk ...B) (p *T, err E) type B type Ctx type E type N type S type T func NewFromBytes(pkb []byte) (p *T, err error) func (p *T) Len() int func (p *T) Read(buf *bytes.Buffer) (el keys.Element) func (p *T) Write(buf *bytes.Buffer) Constants ¶ View Source const Len = 8 Variables ¶ This section is empty. Functions ¶ func New ¶ func New(pk ...B) (p *T, err E) New creates a new pubkey prefix, if parameter is omitted, new one is allocated (for read) if more than one is given, only the first is used, and if the first one is not the correct hexadecimal length of 64, return error. Types ¶ type B ¶ added in v1.0.0 type B = []byte type Ctx ¶ added in v1.0.0 type Ctx = context.T type E ¶ added in v1.0.0 type E = error type N ¶ added in v1.0.0 type N = int type S ¶ added in v1.0.0 type S = string type T ¶ type T struct { Val []byte } func NewFromBytes ¶ func NewFromBytes(pkb []byte) (p *T, err error) func (*T) Len ¶ func (p *T) Len() int func (*T) Read ¶ func (p *T) Read(buf *bytes.Buffer) (el keys.Element) func (*T) Write ¶ func (p *T) Write(buf *bytes.Buffer) Source Files ¶ View all Source files pubkey.go util.go Click to show internal directories. Click to hide internal directories.