MCPcopy Create free account
hub / github.com/DNAProject/DNA / NewAccount

Method NewAccount

account/client.go:41–41  ·  view source on GitHub ↗

NewAccount create a new account.

(label string, typeCode keypair.KeyType, curveCode byte, sigScheme s.SignatureScheme, passwd []byte)

Source from the content-addressed store, hash-verified

39type Client interface {
40 //NewAccount create a new account.
41 NewAccount(label string, typeCode keypair.KeyType, curveCode byte, sigScheme s.SignatureScheme, passwd []byte) (*Account, error)
42 //ImportAccount import a already exist account to wallet
43 ImportAccount(accMeta *AccountMetadata) error
44 //GetAccountByAddress return account object by address

Callers 6

accountCreateFunction · 0.65
TestMainFunction · 0.65
TestClientNewAccountFunction · 0.65
TestClientDeleteAccountFunction · 0.65
TestClientSetLabelFunction · 0.65
TestClientSetDefaultFunction · 0.65

Implementers 1

ClientImplaccount/client.go

Calls

no outgoing calls

Tested by 5

TestMainFunction · 0.52
TestClientNewAccountFunction · 0.52
TestClientDeleteAccountFunction · 0.52
TestClientSetLabelFunction · 0.52
TestClientSetDefaultFunction · 0.52