Documentation ¶
Index ¶
- Constants
- Variables
- type MockKey
- type MockKeyClient
- func (mkc *MockKeyClient) DumpKeys(templateString string) (string, error)
- func (mkc *MockKeyClient) Generate(keyName string, keyType KeyType) (acm.Address, error)
- func (mkc *MockKeyClient) HealthCheck() error
- func (mkc *MockKeyClient) NewKey(name string) acm.Address
- func (mkc *MockKeyClient) PublicKey(address acm.Address) (acm.PublicKey, error)
- func (mkc *MockKeyClient) Sign(signAddress acm.Address, message []byte) (acm.Signature, error)
Constants ¶
View Source
const DefaultDumpKeysFormat = `` /* 264-byte string literal not displayed */
View Source
const LeftTemplateDelim = "<<"
View Source
const RightTemplateDelim = ">>"
Variables ¶
View Source
var DefaultDumpKeysTemplate = template.Must(template.New("MockKeyClient_DumpKeys"). Delims(LeftTemplateDelim, RightTemplateDelim). Parse(DefaultDumpKeysFormat))
Functions ¶
This section is empty.
Types ¶
type MockKey ¶ added in v0.16.1
Simple ed25519 key structure for mock purposes with ripemd160 address
func (*MockKey) PrivateKeyBase64 ¶ added in v0.18.0
func (*MockKey) PrivateKeyHex ¶ added in v0.18.0
func (*MockKey) PublicKeyBase64 ¶ added in v0.18.0
func (*MockKey) PublicKeyHex ¶ added in v0.18.0
type MockKeyClient ¶
type MockKeyClient struct {
// contains filtered or unexported fields
}
func NewMockKeyClient ¶
func NewMockKeyClient(privateAccounts ...acm.PrivateAccount) *MockKeyClient
func (*MockKeyClient) DumpKeys ¶ added in v0.18.0
func (mkc *MockKeyClient) DumpKeys(templateString string) (string, error)
func (*MockKeyClient) Generate ¶ added in v0.18.0
func (mkc *MockKeyClient) Generate(keyName string, keyType KeyType) (acm.Address, error)
func (*MockKeyClient) HealthCheck ¶ added in v0.18.0
func (mkc *MockKeyClient) HealthCheck() error
Click to show internal directories.
Click to hide internal directories.