package
Version:
v0.1.9
Opens a new window with list of versions in this module.
Published: Jan 17, 2023
License: Unlicense
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package prv is a wrapper around secp256k1 library from the Decred project to
handle, generate and serialise secp256k1 private keys.
View Source
const (
KeyLen = secp256k1.PrivKeyBytesLen
)
Zero zeroes out a private key in serial form.
type Key secp256k1.PrivateKey
Key is a private key.
GenerateKey a private key.
func PrivkeyFromBytes(b []byte) *Key
PrivkeyFromBytes converts a byte slice into a private key.
ToBytes returns the Bytes serialized form. It zeroes the original bytes.
Zero out a private key to prevent key scraping from memory.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.