Skip to content

Commit

Permalink
Use ed25519-multikey to resolve ed25519 keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Jun 15, 2024
1 parent cb2da67 commit e8630b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# bedrock-did-io ChangeLog

## 11.0.0 - 2024-mm-dd

### Changed
- **BREAKING**: Use `ed25519-multikey` to resolve ed25519 keys. This will
result in `Multikey`-typed verification methods being returned instead
of `Ed25519VerificationKey2020`-typed verification methods.

## 10.3.1 - 2024-04-14

### Fixed
Expand Down
6 changes: 2 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import * as didMethodKey from '@digitalbazaar/did-method-key';
import * as didMethodWeb from '@digitalbazaar/did-method-web';
import * as didVeresOne from 'did-veres-one';
import * as EcdsaMultikey from '@digitalbazaar/ecdsa-multikey';
import * as Ed25519Multikey from '@digitalbazaar/ecdsa-multikey';
import {CachedResolver} from '@digitalbazaar/did-io';
import {
Ed25519VerificationKey2020
} from '@digitalbazaar/ed25519-verification-key-2020';
import {httpsAgent} from '@bedrock/https-agent';
import {LruCache} from '@digitalbazaar/lru-memoize';

Expand All @@ -22,7 +20,7 @@ export const didIo = new CachedResolver();

const SUPPORTED_KEY_TYPES = new Map([
['Bls12381G2', Bls12381Multikey],
['Ed25519', Ed25519VerificationKey2020],
['Ed25519', Ed25519Multikey],
['P-256', EcdsaMultikey],
['P-384', EcdsaMultikey],
['P-521', EcdsaMultikey],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@digitalbazaar/did-method-key": "^5.2.0",
"@digitalbazaar/did-method-web": "^1.0.0",
"@digitalbazaar/ecdsa-multikey": "^1.7.0",
"@digitalbazaar/ed25519-verification-key-2020": "^4.1.0",
"@digitalbazaar/ed25519-multikey": "^1.1.0",
"@digitalbazaar/lru-memoize": "^3.0.2",
"did-veres-one": "^16.0.0"
},
Expand Down

0 comments on commit e8630b6

Please sign in to comment.