Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(key []byte) (*ecdsa.PrivateKey, error)
Returns the private key from a given PEM-Encoded byte slice representation of the private key
func Encode ¶
func Encode(key *ecdsa.PrivateKey) ([]byte, error)
Returns the PEM-Encoded byte slice from a given private key
func GenerateNRandomKeys ¶
Generates n random keys and writes them to the file at filename
Types ¶
type AurumPrivateKey ¶
type AurumPrivateKey struct { Key *ecdsa.PrivateKey Bytes []byte Hex string }
func New ¶
func New() (AurumPrivateKey, error)
func (AurumPrivateKey) Equals ¶
func (pvKey AurumPrivateKey) Equals(pvKey2 *ecdsa.PrivateKey) bool
Equals returns true if the given two *ecdsa.PrivateKey are equal
Click to show internal directories.
Click to hide internal directories.