Versions in this module Expand all Collapse all v0 v0.1.11 Oct 3, 2023 v0.1.10 Oct 2, 2023 Changes in this version + const IDLength + func RegisterIDAlias(id ID, alias string) + func UnregisterIDAliases() + type ID [IDLength]byte + func DecodeIDBase58(s string) (ID, error) + func IDFromMarshalUtil(marshalUtil *marshalutil.MarshalUtil) (id ID, err error) + func NewID(key ed25519.PublicKey) ID + func ParseID(s string) (ID, error) + func RandomIDInsecure() (id ID, err error) + func (id *ID) FromBytes(bytes []byte) (consumedBytes int, err error) + func (id ID) Bytes() ([]byte, error) + func (id ID) EncodeBase58() string + func (id ID) String() string + type Identity struct + func GenerateIdentity() *Identity + func New(publicKey ed25519.PublicKey) *Identity + func Parse(marshalUtil *marshalutil.MarshalUtil, optionalTargetObject ...*Identity) (result *Identity, err error) + func (i Identity) ID() ID + func (i Identity) PublicKey() ed25519.PublicKey + type LocalIdentity struct + func GenerateLocalIdentity() *LocalIdentity + func NewLocalIdentity(publicKey ed25519.PublicKey, privateKey ed25519.PrivateKey) *LocalIdentity + func NewLocalIdentityWithIdentity(identity *Identity, privateKey ed25519.PrivateKey) *LocalIdentity + func (l LocalIdentity) Sign(message []byte) ed25519.Signature