Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 4fe84d68fb | |
Derrick Hammer | 6cf2481164 | |
Derrick Hammer | e25087890f |
|
@ -1,3 +1,10 @@
|
|||
# [0.1.0-develop.59](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.58...v0.1.0-develop.59) (2023-09-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add fromRegistryPublicKey helper ([e250878](https://git.lumeweb.com/LumeWeb/libs5/commit/e25087890f1d19139da5152e0d18b6001911baff))
|
||||
|
||||
# [0.1.0-develop.58](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.57...v0.1.0-develop.58) (2023-09-11)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.58",
|
||||
"version": "0.1.0-develop.59",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.58",
|
||||
"version": "0.1.0-develop.59",
|
||||
"dependencies": {
|
||||
"@noble/curves": "^1.1.0",
|
||||
"@noble/hashes": "^1.3.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.58",
|
||||
"version": "0.1.0-develop.59",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -42,6 +42,10 @@ export default class CID extends Multibase {
|
|||
return CID._init(bytes);
|
||||
}
|
||||
|
||||
static fromRegistryPublicKey(pubkey: string | Uint8Array): CID {
|
||||
return CID.fromHash(pubkey, 0, CID_TYPES.RESOLVER);
|
||||
}
|
||||
|
||||
static fromHash(
|
||||
bytes: string | Uint8Array,
|
||||
size: number,
|
||||
|
|
Loading…
Reference in New Issue