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

Function TestAddress

http/test/func_test.go:85–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83 assert.Nil(t, err)
84}
85func TestAddress(t *testing.T) {
86 pubkey, _ := common.HexToBytes("120203a4e50edc1e59979442b83f327030a56bffd08c2de3e0a404cefb4ed2cc04ca3e")
87 _, err := keypair.DeserializePublicKey(pubkey)
88 assert.Nil(t, err)
89}
90func TestMultiPubKeysAddress(t *testing.T) {
91 pubkey, _ := common.HexToBytes("120203a4e50edc1e59979442b83f327030a56bffd08c2de3e0a404cefb4ed2cc04ca3e")
92 pk, err := keypair.DeserializePublicKey(pubkey)

Callers

nothing calls this directly

Calls 1

HexToBytesFunction · 0.92

Tested by

no test coverage detected