Skip to content

Commit c274462

Browse files
Bump version to 0.0.5
1 parent b68db7d commit c274462

7 files changed

Lines changed: 48 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ All notable changes to Podkey will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.0.5] - 2024-12-XX
9+
10+
### Added
11+
12+
- Comprehensive installation instructions on test page
13+
- Clear guidance for users on how to install and use the extension
14+
- Links to did:nostr specification throughout documentation
15+
16+
### Changed
17+
18+
- License changed from MIT to AGPL-3.0
19+
- All descriptions updated to emphasize did:nostr and Solid authentication
20+
- Test page now shows installation guide when extension is not detected
21+
- Popup UI updated to mention did:nostr and Solid
22+
23+
### Documentation
24+
25+
- Added did:nostr specification link (https://nostrcg.github.io/did-nostr/)
26+
- Updated README to clearly position Podkey as extension for did:nostr and Solid
27+
- Enhanced test page with better user guidance
28+
829
## [0.0.4] - 2024-12-XX
930

1031
### Fixed
@@ -65,5 +86,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6586
- Trust management system
6687
- Storage abstraction layer
6788

89+
[0.0.5]: https://github.com/JavaScriptSolidServer/podkey/compare/v0.0.4...v0.0.5
6890
[0.0.4]: https://github.com/JavaScriptSolidServer/podkey/compare/v0.0.3...v0.0.4
6991
[0.0.3]: https://github.com/JavaScriptSolidServer/podkey/compare/v0.0.2...v0.0.3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Browser extension for **did:nostr** and **Solid** authentication
44
5-
[![Version](https://img.shields.io/badge/version-0.0.4-blue.svg)](https://github.com/JavaScriptSolidServer/podkey/releases)
5+
[![Version](https://img.shields.io/badge/version-0.0.5-blue.svg)](https://github.com/JavaScriptSolidServer/podkey/releases)
66
[![License](https://img.shields.io/badge/license-AGPL--3.0-green.svg)](LICENSE)
77
[![NIP-07](https://img.shields.io/badge/NIP--07-compatible-purple.svg)](https://github.com/nostr-protocol/nips/blob/master/07.md)
88
[![Test Page](https://img.shields.io/badge/test--page-live-brightgreen)](https://javascriptsolidserver.github.io/podkey/test-page/)

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Podkey",
4-
"version": "0.0.4",
4+
"version": "0.0.5",
55
"description": "did:nostr and Solid authentication extension - NIP-07 wallet for decentralized identity",
66
"permissions": [
77
"storage",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "podkey",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "did:nostr and Solid authentication extension - NIP-07 provider for decentralized identity",
55
"main": "src/index.js",
66
"type": "module",

src/background.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,19 @@ async function handleGenerateKeypair () {
172172
try {
173173
console.log('[Podkey] Starting keypair generation...');
174174
const keypair = await generateKeypair();
175-
console.log('[Podkey] Keypair generated:', {
176-
privateKeyLength: keypair.privateKey.length,
177-
publicKeyLength: keypair.publicKey.length
175+
console.log('[Podkey] Keypair generated:', {
176+
privateKeyLength: keypair.privateKey.length,
177+
publicKeyLength: keypair.publicKey.length
178178
});
179-
179+
180180
await storeKeypair(keypair.privateKey, keypair.publicKey);
181181
console.log('[Podkey] Keypair stored');
182182

183183
const result = {
184184
publicKey: keypair.publicKey,
185185
did: `did:nostr:${keypair.publicKey}`
186186
};
187-
187+
188188
console.log('[Podkey] Returning result:', result);
189189
return result;
190190
} catch (error) {

test/crypto.test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
import { describe, it } from 'node:test';
66
import assert from 'node:assert';
7-
import {
8-
generateKeypair,
9-
getPublicKey,
10-
signEvent,
7+
import {
8+
generateKeypair,
9+
getPublicKey,
10+
signEvent,
1111
verifySignature,
1212
getEventHash,
1313
isValidPublicKey
@@ -17,7 +17,7 @@ describe('Crypto Functions', () => {
1717
describe('generateKeypair', () => {
1818
it('should generate a valid keypair', async () => {
1919
const keypair = await generateKeypair();
20-
20+
2121
assert(keypair, 'Keypair should be returned');
2222
assert(keypair.privateKey, 'Private key should exist');
2323
assert(keypair.publicKey, 'Public key should exist');
@@ -30,7 +30,7 @@ describe('Crypto Functions', () => {
3030
it('should generate different keypairs each time', async () => {
3131
const keypair1 = await generateKeypair();
3232
const keypair2 = await generateKeypair();
33-
33+
3434
assert.notStrictEqual(keypair1.privateKey, keypair2.privateKey, 'Private keys should differ');
3535
assert.notStrictEqual(keypair1.publicKey, keypair2.publicKey, 'Public keys should differ');
3636
});
@@ -40,7 +40,7 @@ describe('Crypto Functions', () => {
4040
it('should derive public key from private key', async () => {
4141
const keypair = await generateKeypair();
4242
const derivedPublicKey = getPublicKey(keypair.privateKey);
43-
43+
4444
assert.strictEqual(derivedPublicKey, keypair.publicKey, 'Derived public key should match');
4545
assert.strictEqual(derivedPublicKey.length, 64, 'Public key should be 64 chars');
4646
});
@@ -63,7 +63,7 @@ describe('Crypto Functions', () => {
6363
};
6464

6565
const signed = await signEvent(event, keypair.privateKey);
66-
66+
6767
assert(signed.id, 'Event should have id');
6868
assert(signed.pubkey, 'Event should have pubkey');
6969
assert(signed.sig, 'Event should have signature');
@@ -84,7 +84,7 @@ describe('Crypto Functions', () => {
8484

8585
const signed = await signEvent(event, keypair.privateKey);
8686
const hashWithPubkey = getEventHash({ ...event, pubkey: keypair.publicKey });
87-
87+
8888
assert.strictEqual(signed.id, hashWithPubkey, 'Event ID should match hash with pubkey');
8989
});
9090
});
@@ -101,7 +101,7 @@ describe('Crypto Functions', () => {
101101

102102
const signed = await signEvent(event, keypair.privateKey);
103103
const isValid = await verifySignature(signed);
104-
104+
105105
assert.strictEqual(isValid, true, 'Signature should be valid');
106106
});
107107

@@ -134,7 +134,7 @@ describe('Crypto Functions', () => {
134134

135135
const hash1 = getEventHash(event);
136136
const hash2 = getEventHash(event);
137-
137+
138138
assert.strictEqual(hash1, hash2, 'Hashes should be consistent');
139139
assert.strictEqual(hash1.length, 64, 'Hash should be 64 chars');
140140
});
@@ -147,15 +147,15 @@ describe('Crypto Functions', () => {
147147
content: 'Test',
148148
pubkey: 'a'.repeat(64)
149149
};
150-
150+
151151
const event2 = {
152152
...event1,
153153
pubkey: 'b'.repeat(64)
154154
};
155155

156156
const hash1 = getEventHash(event1);
157157
const hash2 = getEventHash(event2);
158-
158+
159159
assert.notStrictEqual(hash1, hash2, 'Different pubkeys should produce different hashes');
160160
});
161161
});

test/storage.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ describe('Storage Functions', () => {
6464
clearStorage();
6565
const privateKey = 'a'.repeat(64);
6666
const publicKey = 'b'.repeat(64);
67-
67+
6868
await storeKeypair(privateKey, publicKey);
6969
const retrieved = await getKeypair();
70-
70+
7171
assert(retrieved, 'Keypair should be retrieved');
7272
assert.strictEqual(retrieved.privateKey, privateKey);
7373
assert.strictEqual(retrieved.publicKey, publicKey);
@@ -98,7 +98,7 @@ describe('Storage Functions', () => {
9898
clearStorage();
9999
await storeKeypair('a'.repeat(64), 'b'.repeat(64));
100100
assert.strictEqual(await hasKeypair(), true);
101-
101+
102102
await deleteKeypair();
103103
assert.strictEqual(await hasKeypair(), false);
104104
});
@@ -108,7 +108,7 @@ describe('Storage Functions', () => {
108108
it('should add and check trusted origin', async () => {
109109
clearStorage();
110110
const origin = 'https://example.com';
111-
111+
112112
assert.strictEqual(await isTrustedOrigin(origin), false);
113113
await addTrustedOrigin(origin);
114114
assert.strictEqual(await isTrustedOrigin(origin), true);
@@ -126,7 +126,7 @@ describe('Storage Functions', () => {
126126
clearStorage();
127127
await setAutoSign(false);
128128
assert.strictEqual(await getAutoSign(), false);
129-
129+
130130
await setAutoSign(true);
131131
assert.strictEqual(await getAutoSign(), true);
132132
});

0 commit comments

Comments
 (0)