Documentation ¶
Index ¶
- type ExtendedEd25519Signer
- type ExtendedPrivateKey
- type PrvKey
- func (sk PrvKey) Bech32(prefix string) string
- func (sk PrvKey) ExtendedEd25519Signer() crypto.Signer
- func (sk PrvKey) ExtendedPrivateKey() ExtendedPrivateKey
- func (sk PrvKey) PrivateKey() ed25519.PrivateKey
- func (sk PrvKey) PubKey() PubKey
- func (sk PrvKey) PublicKey() ed25519.PublicKey
- func (sk PrvKey) Seed() []byte
- func (sk PrvKey) Sign(message []byte) []byte
- func (sk PrvKey) SignExtended(message []byte) []byte
- func (sk PrvKey) String() string
- type PubKey
- type XPrvKey
- func (xsk XPrvKey) Bech32(prefix string) string
- func (xsk XPrvKey) Derive(index uint32) XPrvKey
- func (xsk XPrvKey) PrvKey() PrvKey
- func (xsk XPrvKey) PubKey() PubKey
- func (xsk XPrvKey) Seed() []byte
- func (xsk XPrvKey) Sign(message []byte) []byte
- func (xsk XPrvKey) String() string
- func (xsk XPrvKey) XPubKey() XPubKey
- type XPubKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedEd25519Signer ¶
type ExtendedEd25519Signer PrvKey
func (ExtendedEd25519Signer) Public ¶
func (e ExtendedEd25519Signer) Public() crypto.PublicKey
func (ExtendedEd25519Signer) Sign ¶
func (e ExtendedEd25519Signer) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)
type ExtendedPrivateKey ¶
type ExtendedPrivateKey PrvKey
func (ExtendedPrivateKey) Sign ¶
func (esk ExtendedPrivateKey) Sign(message []byte) []byte
type PrvKey ¶
type PrvKey []byte
PrvKey is a ed25519 extended private key.
func (PrvKey) ExtendedEd25519Signer ¶
func (PrvKey) ExtendedPrivateKey ¶
func (sk PrvKey) ExtendedPrivateKey() ExtendedPrivateKey
func (PrvKey) PrivateKey ¶
func (sk PrvKey) PrivateKey() ed25519.PrivateKey
func (PrvKey) SignExtended ¶
type PubKey ¶
type PubKey []byte
PubKey is a edd25519 public key.
type XPrvKey ¶
type XPrvKey []byte
XPrvKey is the extended private key (64 bytes) appended with the chain code (32 bytes).
func NewXPrvKey ¶
NewXPrvKey creates a new extended private key from a bech32 encoded private key.
func NewXPrvKeyFromEntropy ¶
type XPubKey ¶
type XPubKey []byte
XPubKey is the public key (32 bytes) appended with the chain code (32 bytes).
func NewXPubKey ¶
NewXPubKey creates a new extended public key from a bech32 encoded extended public key.
Click to show internal directories.
Click to hide internal directories.