crypto

package
v0.0.0-...-7bd4979 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XMSS

type XMSS struct {
	// contains filtered or unexported fields
}

func FromExtendedSeed

func FromExtendedSeed(extendedSeed goqrllib.UcharVector) *XMSS

func FromHeight

func FromHeight(treeHeight uint, hashFunction goqrllib.EHashFunction) *XMSS

func NewXMSS

func NewXMSS(xmssFast goqrllib.XmssFast) *XMSS

func (*XMSS) Address

func (x *XMSS) Address() goqrllib.UcharVector

func (*XMSS) ExtendedSeed

func (x *XMSS) ExtendedSeed() goqrllib.UcharVector

func (*XMSS) HashFunction

func (x *XMSS) HashFunction() string

func (*XMSS) Height

func (x *XMSS) Height() uint64

func (*XMSS) HexSeed

func (x *XMSS) HexSeed() string

func (*XMSS) Mnemonic

func (x *XMSS) Mnemonic() string

func (*XMSS) NumberSignatures

func (x *XMSS) NumberSignatures() uint64

func (*XMSS) OTSIndex

func (x *XMSS) OTSIndex() uint64

func (*XMSS) PK

func (x *XMSS) PK() goqrllib.UcharVector

func (*XMSS) QAddress

func (x *XMSS) QAddress() string

func (*XMSS) RemainingSignatures

func (x *XMSS) RemainingSignatures() uint64

func (*XMSS) Seed

func (x *XMSS) Seed() goqrllib.UcharVector

func (*XMSS) SetOTSIndex

func (x *XMSS) SetOTSIndex(newIndex uint)

func (*XMSS) Sign

func (x *XMSS) Sign(message goqrllib.UcharVector) []byte

func (*XMSS) SignatureType

func (x *XMSS) SignatureType() goqrllib.ESignatureType

type XMSSInterface

type XMSSInterface interface {
	HashFunction() string

	SignatureType() goqrllib.ESignatureType

	Height() uint64

	NumberSignatures() uint64

	RemainingSignatures() uint64

	Mnemonic() string

	Address() []byte

	QAddress() string

	OTSIndex() uint64

	SetOTSIndex(newIndex uint)

	HexSeed() string

	ExtendedSeed() string

	Seed() string

	Sign(message goqrllib.UcharVector) []byte
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL