Documentation
¶
Index ¶
- Variables
- func DerivePrivateKey(priv *primitives.PrivateKey, derivationKey string) (*primitives.PrivateKey, error)
- func Destination(pubKey *primitives.PublicKey, referenceID string) (*primitives.PublicKey, string, error)
- func PaymailPKI(pubKey *primitives.PublicKey, alias, domain string) (*primitives.PublicKey, string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeriveKey = models.SPVError{Message: "Failed to derive a child key for provided public key", StatusCode: 500, Code: "error-derive-key"}
ErrDeriveKey is an error that occurs when a child key cannot be derived from a public key.
Functions ¶
func DerivePrivateKey ¶
func DerivePrivateKey(priv *primitives.PrivateKey, derivationKey string) (*primitives.PrivateKey, error)
DerivePrivateKey created derived private key based on derivation key (type 42 derivation with "anyone" private key)
func Destination ¶
func Destination(pubKey *primitives.PublicKey, referenceID string) (*primitives.PublicKey, string, error)
Destination derives a public key using a reference ID. It is intended to be used to derive a public key for paymail destinations.
func PaymailPKI ¶
func PaymailPKI(pubKey *primitives.PublicKey, alias, domain string) (*primitives.PublicKey, string, error)
PaymailPKI (Public Key Infrastructure) derives a public key using a constant derivation key for provided paymail.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.