Skip to content

Commit

Permalink
Add module definitions for ISO helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Dec 8, 2024
1 parent ceb726c commit c862acd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/src/helpers/cose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*
* These types are an unorthodox way of saying "these Maps should involve these discrete lists of
* keys", but it works.
* @module
*/
export type COSEPublicKey = {
// Getters
Expand Down
4 changes: 4 additions & 0 deletions packages/server/src/helpers/iso/isoBase64URL.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* A runtime-agnostic collection of methods for working with Base64URL encoding
* @module
*/
import base64 from '@hexagon/base64';

import type { Base64URLString } from '../../types/index.ts';
Expand Down
4 changes: 4 additions & 0 deletions packages/server/src/helpers/iso/isoCBOR.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* A runtime-agnostic collection of methods for working with CBOR encoding
* @module
*/
import * as tinyCbor from 'tiny-cbor';

/**
Expand Down
4 changes: 4 additions & 0 deletions packages/server/src/helpers/iso/isoCrypto/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* A runtime-agnostic collection of methods for working with the WebCrypto API
* @module
*/
export { digest } from './digest.ts';
export { getRandomValues } from './getRandomValues.ts';
export { verify } from './verify.ts';
5 changes: 5 additions & 0 deletions packages/server/src/helpers/iso/isoUint8Array.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* A runtime-agnostic collection of methods for working with Uint8Arrays
* @module
*/

/**
* Make sure two Uint8Arrays are deeply equivalent
*/
Expand Down

0 comments on commit c862acd

Please sign in to comment.