Documentation ¶
Index ¶
- func GetTxEncryptionKeyOffline(pubkey []byte, txSenderPrivKey []byte, nonce []byte) ([]byte, error)
- func GzipIt(input []byte) ([]byte, error)
- func IsGzip(input []byte) bool
- func IsWasm(input []byte) bool
- type WASMContext
- func (ctx WASMContext) Decrypt(ciphertext []byte, nonce []byte) ([]byte, error)
- func (ctx WASMContext) DecryptError(errString string, nonce []byte) (json.RawMessage, error)
- func (ctx WASMContext) Encrypt(plaintext []byte) ([]byte, error)
- func (ctx WASMContext) GetTxSenderKeyPair() (privkey []byte, pubkey []byte, er error)
- func (ctx WASMContext) OfflineEncrypt(plaintext []byte, pathToMasterIoKey string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WASMContext ¶
type WASMContext struct { CLIContext client.Context TestKeyPairPath string TestMasterIOCert regtypes.MasterCertificate }
WASMContext wraps github.com/cosmos/cosmos-sdk/client/client.Context
func (WASMContext) Decrypt ¶
func (ctx WASMContext) Decrypt(ciphertext []byte, nonce []byte) ([]byte, error)
Decrypt decrypts
func (WASMContext) DecryptError ¶
func (ctx WASMContext) DecryptError(errString string, nonce []byte) (json.RawMessage, error)
func (WASMContext) Encrypt ¶
func (ctx WASMContext) Encrypt(plaintext []byte) ([]byte, error)
Encrypt encrypts
func (WASMContext) GetTxSenderKeyPair ¶
func (ctx WASMContext) GetTxSenderKeyPair() (privkey []byte, pubkey []byte, er error)
GetTxSenderKeyPair get the local tx encryption id
func (WASMContext) OfflineEncrypt ¶
func (ctx WASMContext) OfflineEncrypt(plaintext []byte, pathToMasterIoKey string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.