Documentation ¶
Index ¶
- func Address(pubkey string) string
- func FaucetTx()
- func GetMD5Hash(text string) string
- func GetSHAHash(text string) string
- func MsgHash(message string) []byte
- func PrivKeyFromHex(hexString string) btcec.PrivateKey
- func PrivKeyToHex(privkey btcec.PrivateKey) string
- func PubFromSecret(secret string) btcec.PublicKey
- func PubHexFromSecret() string
- func PubKeyFromHex(hexString string) btcec.PublicKey
- func PubKeyToHex(pubkey btcec.PublicKey) string
- func RandomPublicKey() string
- func RemovePubTx(tx block.Tx) block.Tx
- func RemoveSigTx(tx block.Tx) block.Tx
- func Sign(keypair Keypair, message string) btcec.Signature
- func SignMsgHash(keypair Keypair, message string) btcec.Signature
- func SignTx(tx block.Tx, keypair Keypair) btcec.Signature
- func SignTxAdd(tx block.Tx, keypair Keypair) block.Tx
- func SignatureFromHex(hexString string) btcec.Signature
- func SignatureToHex(sig btcec.Signature) string
- func TxHash(tx block.Tx) [32]byte
- func VerifyMessageSign(signature btcec.Signature, keypair Keypair, message string) bool
- func VerifyMessageSignPub(signature btcec.Signature, pubkey btcec.PublicKey, message string) bool
- func VerifyTxSig(tx block.Tx) bool
- type Keypair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMD5Hash ¶
func GetSHAHash ¶
func PrivKeyFromHex ¶
func PrivKeyFromHex(hexString string) btcec.PrivateKey
func PrivKeyToHex ¶
func PrivKeyToHex(privkey btcec.PrivateKey) string
func PubFromSecret ¶
func PubHexFromSecret ¶
func PubHexFromSecret() string
func PubKeyFromHex ¶
func PubKeyToHex ¶
func RandomPublicKey ¶
func RandomPublicKey() string
func SignatureFromHex ¶
Decode hex-encoded serialized signature
func SignatureToHex ¶
func VerifyMessageSign ¶
func VerifyMessageSignPub ¶
func VerifyTxSig ¶
Types ¶
type Keypair ¶
type Keypair struct { PrivKey btcec.PrivateKey PubKey btcec.PublicKey }
func PairFromHex ¶
func PairFromSecret ¶
Click to show internal directories.
Click to hide internal directories.