Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileToECDSA ¶
func FileToECDSA(hexPath string) (*ecdsa.PrivateKey, error)
FileToECDSA parses a file path to a hex-encoded secp256k1 private key to an ECDSA private key.
func HexToECDSA ¶
func HexToECDSA(hexKey string) (*ecdsa.PrivateKey, error)
HexToECDSA parses a hex-encoded secp256k1 private key string to an ECDSA private key.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer allows you to sign a big stream of bytes by calling Sum multiple times, then Sign.
func (*Signer) SignBytes ¶
SignBytes signs the provided bytes, returning the signature as a byte slice.
Click to show internal directories.
Click to hide internal directories.