MCPcopy
hub / github.com/bnb-chain/bsc / Unlock

Method Unlock

accounts/keystore/keystore.go:317–319  ·  view source on GitHub ↗

Unlock unlocks the given account indefinitely.

(a accounts.Account, passphrase string)

Source from the content-addressed store, hash-verified

315
316// Unlock unlocks the given account indefinitely.
317func (ks *KeyStore) Unlock(a accounts.Account, passphrase string) error {
318 return ks.TimedUnlock(a, passphrase, 0)
319}
320
321// Lock removes the private key with the given address from memory.
322func (ks *KeyStore) Lock(addr common.Address) error {

Callers 15

TestAccountManagementFunction · 0.95
SetEthConfigFunction · 0.95
mainFunction · 0.95
FuzzFunction · 0.95
mainFunction · 0.95
updateMethod · 0.45
OpenMethod · 0.45
heartbeatMethod · 0.45
CloseMethod · 0.45
selfDeriveMethod · 0.45
DeriveMethod · 0.45
SelfDeriveMethod · 0.45

Calls 1

TimedUnlockMethod · 0.95

Tested by 2

TestAccountManagementFunction · 0.76
TestSignFunction · 0.36