mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-03-15 19:50:58 +00:00
fix(unmarshal): provide only one arg to callback (#17)
This commit is contained in:
parent
3f131d4a0a
commit
3bb84514d1
@ -96,7 +96,7 @@ module.exports = (keysProtobuf, randomBytes, crypto) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function unmarshalSecp256k1PrivateKey (bytes, callback) {
|
function unmarshalSecp256k1PrivateKey (bytes, callback) {
|
||||||
callback(null, new Secp256k1PrivateKey(bytes), null)
|
callback(null, new Secp256k1PrivateKey(bytes))
|
||||||
}
|
}
|
||||||
|
|
||||||
function unmarshalSecp256k1PublicKey (bytes) {
|
function unmarshalSecp256k1PublicKey (bytes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user