Compare commits

...

3 Commits

4 changed files with 10 additions and 4 deletions

View File

@ -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)

4
npm-shrinkwrap.json generated
View File

@ -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",

View File

@ -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": {

View File

@ -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;
}