Documentation ¶
Index ¶
Constants ¶
View Source
const (
PubKeyBytesLenCompressed = 33
)
Variables ¶
This section is empty.
Functions ¶
func PaddedBigBytes ¶
PaddedBigBytes encodes a big integer as a big-endian byte slice. The length of the slice is at least n bytes.
Types ¶
type Secp256k1Key ¶
type Secp256k1Key struct {
PrivateKey *ecdsa.PrivateKey
}
func HexToKey ¶
func HexToKey(hexkey string) (*Secp256k1Key, error)
func RandomNew ¶
func RandomNew() (*Secp256k1Key, error)
func ToKey ¶
func ToKey(d []byte) (*Secp256k1Key, error)
func (*Secp256k1Key) Bytes ¶
func (k *Secp256k1Key) Bytes() []byte
func (*Secp256k1Key) PubKey ¶
func (k *Secp256k1Key) PubKey() []byte
type SignatureData ¶
func SignAsRecoverable ¶
func SignAsRecoverable(value []byte, prvKey *btcec.PrivateKey) *SignatureData
func (SignatureData) ToBytes ¶
func (sd SignatureData) ToBytes() []byte
func (*SignatureData) ToHex ¶
func (sd *SignatureData) ToHex() string
Click to show internal directories.
Click to hide internal directories.