Documentation ¶
Overview ¶
Package localsigner is a local signer
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer is a new local signer.
func NewSigner ¶
func NewSigner(key *ecdsa.PrivateKey) *Signer
NewSigner creates a new signer.
Example ¶
testWallet, err := wallet.FromHex("63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9") if err != nil { panic(err) } newSigner := localsigner.NewSigner(testWallet.PrivateKey()) fmt.Println(newSigner.Address())
Output: 0xC49926C4124cEe1cbA0Ea94Ea31a6c12318df947
func (*Signer) GetTransactor ¶
GetTransactor gets the transcator.
Click to show internal directories.
Click to hide internal directories.