mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-06-26 02:51:41 +00:00
feat: add id()
method to Secp256k1PrivateKey
Feature parity with ed25519 and rsa
This commit is contained in:
committed by
Friedel Ziegelmayer
parent
3a8bab9f44
commit
f4dbd62e49
@ -85,6 +85,15 @@ describe('secp256k1 keys', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('key id', (done) => {
|
||||
key.id((err, id) => {
|
||||
expect(err).to.not.exist()
|
||||
expect(id).to.exist()
|
||||
expect(id).to.be.a('string')
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
describe('key equals', () => {
|
||||
it('equals itself', () => {
|
||||
expect(key.equals(key)).to.eql(true)
|
||||
|
Reference in New Issue
Block a user