Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExchangeKeys ¶
func ExchangeKeys(privKey *PrivateKey, pubKey *PublicKey, length int) ([]byte, error)
func PublicKeyFromBytes ¶
PublicKeyFromBytes - Convert byte array to PublicKey
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey based on the sr25519 curve
func GenerateKey ¶
func GenerateKey(rand io.Reader) (*PrivateKey, error)
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(privKey []byte) (*PrivateKey, error)
PrivateKeyFromBytes get a private key from seed []byte
func (PrivateKey) Bytes ¶
func (pk PrivateKey) Bytes() []byte
Bytes returns the byte representation of the private key
func (PrivateKey) PublicKey ¶
func (pk PrivateKey) PublicKey() crypto.PublicKey
PublicKey return the crypto.PublicKey that is derived from the Privatekey
Directories ¶
Path | Synopsis |
---|---|
Package sr25519test contains keys that are used to ease testing of Mailchain functionality.
|
Package sr25519test contains keys that are used to ease testing of Mailchain functionality. |
Click to show internal directories.
Click to hide internal directories.