MCPcopy Create free account
hub / github.com/copernet/copernicus / AddKeyPairs

Method AddKeyPairs

crypto/keystore.go:85–92  ·  view source on GitHub ↗
(keys []*KeyPair)

Source from the content-addressed store, hash-verified

83}
84
85func (ks *KeyStore) AddKeyPairs(keys []*KeyPair) {
86 ks.Lock()
87 defer ks.Unlock()
88
89 for _, keyPair := range keys {
90 ks.keys[keyPair.GetKeyID()] = keyPair
91 }
92}

Callers 3

TestKeyStore_AddKeyPairsFunction · 0.95
CreateTransactionFunction · 0.95
getKeysFunction · 0.95

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
GetKeyIDMethod · 0.80

Tested by 1

TestKeyStore_AddKeyPairsFunction · 0.76