Documentation ¶
Index ¶
- func DecryptKeyStore(data, pw []byte) (*crypto.PrivateKey, error)
- func EncryptKeyAsKeyStore(s *crypto.PrivateKey, pw []byte) ([]byte, error)
- func KeyStoreFromWallet(w module.Wallet, pw []byte) ([]byte, error)
- func New() module.Wallet
- func NewFromKeyStore(data, pw []byte) (module.Wallet, error)
- func NewFromPrivateKey(sk *crypto.PrivateKey) (module.Wallet, error)
- func OpenPlugin(p string, opts map[string]string) (wallet module.Wallet, ret error)
- func ReadAddressFromKeyStore(data []byte) (module.Address, error)
- func SHA3SumKeccak256(data ...[]byte) []byte
- type AES128CTRParams
- type CryptoData
- type KeyStoreData
- type ScryptParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptKeyStore ¶
func DecryptKeyStore(data, pw []byte) (*crypto.PrivateKey, error)
func EncryptKeyAsKeyStore ¶
func EncryptKeyAsKeyStore(s *crypto.PrivateKey, pw []byte) ([]byte, error)
func NewFromPrivateKey ¶
func NewFromPrivateKey(sk *crypto.PrivateKey) (module.Wallet, error)
func OpenPlugin ¶
func SHA3SumKeccak256 ¶
Types ¶
type AES128CTRParams ¶
type AES128CTRParams struct {
IV common.RawHexBytes `json:"iv"`
}
type CryptoData ¶
type CryptoData struct { Cipher string `json:"cipher"` CipherParams json.RawMessage `json:"cipherparams"` CipherText common.RawHexBytes `json:"ciphertext"` KDF string `json:"kdf"` KDFParams json.RawMessage `json:"kdfparams"` MAC common.RawHexBytes `json:"mac"` }
type KeyStoreData ¶
type ScryptParams ¶
type ScryptParams struct { DKLen int `json:"dklen"` N int `json:"n"` R int `json:"r"` P int `json:"p"` Salt common.RawHexBytes `json:"salt"` }
func (*ScryptParams) Init ¶
func (p *ScryptParams) Init() error
Click to show internal directories.
Click to hide internal directories.