Versions in this module Expand all Collapse all v1 v1.0.1 Sep 29, 2020 Changes in this version + func SignRequestJsonWithKey(ecKey *ECKey, data string) (string, error) + func SignRequestJsonWithKeys(ecKeys []*ECKey, data string) (string, error) + func SignRequestWithKey(eckey *ECKey, sigRequest *SignatureData) (string, error) + func SignRequestWithKeys(ecKeys []*ECKey, sigRequest *SignatureData) (string, error) + func SignWithdrawRequestJson(pin string, withdrawData string) (string, error) + func ValidateResponseJson(responseJson string) error type ECKey + func DeriveKeyFromHex(hexPass string) (*ECKey, error) + func DeriveKeyFromString(pass string) *ECKey + type ErrorData struct + ErrorMessage string + type ErrorResponse struct + Data ErrorData + Status string + func ParseErrorResponse(res string) (*ErrorResponse, error) v1.0.0 Aug 28, 2020 Changes in this version + func AESDecrypt(cipherText []byte, key []byte) ([]byte, error) + func AESEncrypt(clearText []byte, key []byte) ([]byte, error) + func PinToAesKey(pin string) string + func SignDtrustRequest(ecKeys []*ECKey, dtrustReqData SignatureData) (string, error) + func SignInputs(ecKey *ECKey, DataToSign string) (string, error) + func SignSweepRequest(eckey *ECKey, sweepReqData SignatureData) (string, error) + func SignWithdrawRequest(pin string, withdrawData SignatureData) (string, error) + type BaseResponse struct + Data interface{} + Status string + func ParseResponse(res string) (BaseResponse, error) + type ECKey struct + Compressed bool + func ExtractKeyFromEncryptedPassphrase(encryptedData string, b64Key string) (*ECKey, error) + func ExtractKeyFromPassphrase(HexPass string) *ECKey + func ExtractKeyFromPassphraseString(pass string) *ECKey + func FromWIF(strWif string) (*ECKey, error) + func NewECKey(d [32]byte, compressed bool) *ECKey + func (eck *ECKey) PrivateKey() []byte + func (eck *ECKey) PrivateKeyHex() string + func (eck *ECKey) PublicKey() []byte + func (eck *ECKey) PublicKeyHex() string + func (eck *ECKey) Sign(message []byte) ([]byte, error) + func (eck *ECKey) SignHex(message []byte) (string, error) + type EncryptedPassphrase struct + Passphrase string + SignerAddress string + SignerPublicKey string + type Inputs []struct + type SignatureData struct + EncryptedPassphrase EncryptedPassphrase + Inputs Inputs + MoreSignaturesNeeded bool + ReferenceID string + UnsignedTxHex string + func ParseSignatureResponse(res string) (SignatureData, error) + type SignatureRes struct + Data SignatureData + Status string + type Signers []struct