MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / AccountAddress

Method AccountAddress

proto/proto.go:169–177  ·  view source on GitHub ↗

AccountAddress converts DatabaseID to AccountAddress.

()

Source from the content-addressed store, hash-verified

167
168// AccountAddress converts DatabaseID to AccountAddress.
169func (d *DatabaseID) AccountAddress() (a AccountAddress, err error) {
170 h, err := hash.NewHashFromStr(string(*d))
171 if err != nil {
172 err = errors.Wrap(err, "fail to convert string to hash")
173 return
174 }
175 a = AccountAddress(*h)
176 return
177}
178
179// FromAccountAndNonce generates databaseID from Account and its nonce.
180func FromAccountAndNonce(accountAddress AccountAddress, nonce uint32) DatabaseID {

Callers 8

TestMetaStateFunction · 0.80
NewChainWithContextFunction · 0.80
billingMethod · 0.80
TestFullProcessFunction · 0.80
TopUpTaskFunction · 0.80

Calls 2

NewHashFromStrFunction · 0.92
AccountAddressTypeAlias · 0.70

Tested by 4

TestMetaStateFunction · 0.64
TestFullProcessFunction · 0.64