Skip to content

Commit

Permalink
fix: added comments to the fixture for certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
bacco1977 committed Oct 30, 2023
1 parent 264c909 commit d2f10de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/core/tests/certificate/fixture.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import { secp256k1 } from '../../src/secp256k1';
import { address } from '../../src/address';

/**
* Private Key used for digital signature during certificate creation
*/
const privKey = Buffer.from(
'7582be841ca040aa940fff6c05773129e135623e41acce3e0b8ba520dc1ae26a',
'hex'
);

/**
* Certificate n.1 to be used for testing, mostly for encoding and verify functions
*/
const cert = {
purpose: 'identification',
payload: {
Expand All @@ -17,6 +23,9 @@ const cert = {
signer: address.fromPublicKey(secp256k1.derivePublicKey(privKey))
};

/**
* Certificate n.2 to be used for testing, mostly for encoding and verify functions
*/
const cert2 = {
domain: 'localhost',
timestamp: 1545035330,
Expand Down

0 comments on commit d2f10de

Please sign in to comment.