Documentation
¶
Index ¶
- func CreateNewWalletAndKeystore(filepath string, password string)
- func LoadWallet(filepath string, password string) (module.Wallet, 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 CreateNewWalletAndKeystore ¶
Public function that creates and saves a new wallet as a keystore file to filepath.
func LoadWallet ¶
Public function that loads a wallet from a keystore file.
func ReadAddressFromKeyStore ¶
returns the public key of the keystore file
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.