Documentation ¶
Overview ¶
reference: https://github.com/binance-chain/go-sdk/blob/master/common/common.go
reference: https://github.com/binance-chain/go-sdk/blob/master/keys/keystore.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDecrypt = errors.New("could not decrypt key with given passphrase")
)
Functions ¶
func CombineSymbol ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func IsAlphaNum ¶
func QueryParamToMap ¶
Types ¶
type CryptoJSON ¶
type EncryptedKeyJSON ¶
type EncryptedKeyJSON struct { Address string `json:"address"` Crypto CryptoJSON `json:"crypto"` Id string `json:"id"` Version string `json:"version"` }
type KeyManager ¶
type KeyManager interface { ExportAsKeyStore(password string) (*EncryptedKeyJSON, error) GetPrivKey() crypto.PrivKey }
func NewKeyManager ¶
func NewKeyManager(privKey crypto.PrivKey) KeyManager
func NewKeyStoreKeyManager ¶
func NewKeyStoreKeyManager(file string, auth string) (KeyManager, error)
Directories ¶
Path | Synopsis |
---|---|
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/generator.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/uuid.go
|
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/generator.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/uuid.go |
Click to show internal directories.
Click to hide internal directories.