Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 4b173c9699 | |
Derrick Hammer | 614a699cc3 | |
Derrick Hammer | b91f33fb65 |
|
@ -1,3 +1,5 @@
|
|||
# [0.1.0-develop.44](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.43...v0.1.0-develop.44) (2023-09-03)
|
||||
|
||||
# [0.1.0-develop.43](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.42...v0.1.0-develop.43) (2023-09-02)
|
||||
|
||||
# [0.1.0-develop.42](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.41...v0.1.0-develop.42) (2023-09-02)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.43",
|
||||
"version": "0.1.0-develop.44",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.43",
|
||||
"version": "0.1.0-develop.44",
|
||||
"dependencies": {
|
||||
"@noble/curves": "^1.1.0",
|
||||
"@noble/hashes": "^1.3.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5",
|
||||
"version": "0.1.0-develop.43",
|
||||
"version": "0.1.0-develop.44",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
|
@ -12,10 +12,14 @@ export default class KeyPairEd25519 {
|
|||
public get publicKey(): Uint8Array {
|
||||
return concatBytes(
|
||||
Uint8Array.from([CID_HASH_TYPES.ED25519]),
|
||||
ed25519.getPublicKey(this._bytes),
|
||||
this.publicKeyRaw,
|
||||
);
|
||||
}
|
||||
|
||||
public get publicKeyRaw(): Uint8Array {
|
||||
return ed25519.getPublicKey(this._bytes);
|
||||
}
|
||||
|
||||
public extractBytes(): Uint8Array {
|
||||
return this._bytes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue