Documentation ¶
Index ¶
- Constants
- Variables
- type Address
- type Block
- type KeyDB
- type PrivateKey
- func (k PrivateKey) GetBase58() string
- func (k PrivateKey) GetBase58Compressed() string
- func (k PrivateKey) GetBinaryString() string
- func (k PrivateKey) GetBtcEcPrivateKey() *btcec.PrivateKey
- func (k PrivateKey) GetHex() string
- func (k PrivateKey) GetHexCompressed() string
- func (k PrivateKey) GetPublicKey() PublicKey
- type PublicKey
- type ScriptDb
- type Wallet
Constants ¶
View Source
const SigHashForkID txscript.SigHashType = 0x40
Variables ¶
View Source
var MainNetParams = chaincfg.MainNetParams
View Source
var MainNetParamsOld = chainCfgOld.MainNetParams
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func GetAddress ¶
func GetAddressFromPkHash ¶
func GetAddressFromString ¶
func (Address) GetAddress ¶
func (Address) GetEncoded ¶
func (Address) GetScriptAddress ¶
type KeyDB ¶
type KeyDB struct {
Keys map[string]*btcec.PrivateKey
}
type PrivateKey ¶
type PrivateKey struct {
Secret []byte
}
func GeneratePrivateKey ¶
func GeneratePrivateKey() PrivateKey
func GetPrivateKey ¶
func GetPrivateKey(secretHex string) PrivateKey
func ImportPrivateKey ¶
func ImportPrivateKey(wifString string) (PrivateKey, error)
func (PrivateKey) GetBase58 ¶
func (k PrivateKey) GetBase58() string
func (PrivateKey) GetBase58Compressed ¶
func (k PrivateKey) GetBase58Compressed() string
func (PrivateKey) GetBinaryString ¶
func (k PrivateKey) GetBinaryString() string
func (PrivateKey) GetBtcEcPrivateKey ¶
func (k PrivateKey) GetBtcEcPrivateKey() *btcec.PrivateKey
func (PrivateKey) GetHex ¶
func (k PrivateKey) GetHex() string
func (PrivateKey) GetHexCompressed ¶
func (k PrivateKey) GetHexCompressed() string
func (PrivateKey) GetPublicKey ¶
func (k PrivateKey) GetPublicKey() PublicKey
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func GetPublicKey ¶
func (PublicKey) GetAddress ¶
func (PublicKey) GetSerialized ¶
func (PublicKey) GetSerializedString ¶
Click to show internal directories.
Click to hide internal directories.