Documentation ¶
Index ¶
- func AddPadding(src []byte) []byte
- func Decode(wif string) ([]byte, error)
- func DecryptCBC(data, iv, key []byte) (decryptedData []byte, err error)
- func EncryptCBC(data, iv, key []byte) (encryptedData []byte, err error)
- func GetAddressString(prefix string, key *btcec.PublicKey) string
- func GetPrivateKey(wif string) (*btcec.PrivateKey, error)
- func GetPublicKey(wif string) ([]byte, error)
- func GetPublicKeyString(prefix string, key *btcec.PublicKey) string
- func GetSharedSecret(from *btcec.PrivateKey, to *btcec.PublicKey) []byte
- func ParsePublicKey(key string) *btcec.PublicKey
- func RemovePadding(b []byte) ([]byte, error)
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPadding ¶
func DecryptCBC ¶
func EncryptCBC ¶
func GetPrivateKey ¶
func GetPrivateKey(wif string) (*btcec.PrivateKey, error)
func GetPublicKey ¶
GetPublicKey returns the public key associated with the given WIF in the 33-byte compressed format.
func GetSharedSecret ¶
func GetSharedSecret(from *btcec.PrivateKey, to *btcec.PublicKey) []byte
func ParsePublicKey ¶
ParsePublicKey parses address to public key, returns nil on error
func RemovePadding ¶
Types ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func NewSignature ¶
func SignDigest ¶
func SignDigest(digest []byte, privKey *btcec.PrivateKey) (*Signature, error)
func (*Signature) IsCanonical ¶
Click to show internal directories.
Click to hide internal directories.