Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
85
func
(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_AddKeyPairs
Function · 0.95
CreateTransaction
Function · 0.95
getKeys
Function · 0.95
Calls
3
Lock
Method · 0.80
Unlock
Method · 0.80
GetKeyID
Method · 0.80
Tested by
1
TestKeyStore_AddKeyPairs
Function · 0.76