Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Signer ¶
type Signer interface { // EthereumAddress returns the ethereum address this signer uses. EthereumAddress() common.Address SignTx(transaction *types.Transaction, chainID *big.Int) (*types.Transaction, error) GenNonce() []byte EncryptAndGetHash(key [32]byte, nonce []byte, message []byte) ([32]byte, []byte, error) DecryptMessage(sharedKey [32]byte, cipherText []byte, nonce []byte) (string, error) VerifySignature(publicKey ecdsa.PublicKey, signature, messageHash []byte) bool Sign(hash [32]byte) ([]byte, error) GetPublicKey() *ecdsa.PublicKey PublicKeyFromBytes(pbKey []byte) (*ecdsa.PublicKey, error) BytesFromPublicKey(key *ecdsa.PublicKey) []byte // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.