Skip to content

Commit

Permalink
feat(secp256k1): change API signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoustachiste authored and dlongley committed Aug 17, 2024
1 parent de2b461 commit a1ad18c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import {
serializeBaseVerifyData
} from './proofValue.js';
import {name} from './name.js';
import {requiredAlgorithm} from './requiredAlgorithm.js';
import {requiredAlgorithm as _requiredAlgorithm} from './requiredAlgorithm.js';

Check failure on line 19 in lib/sign.js

View workflow job for this annotation

GitHub Actions / lint (20.x)

Imports should be sorted alphabetically

export function createSignCryptosuite({mandatoryPointers = [], algorithm = requiredAlgorithm} = {}) {
export function createSignCryptosuite({mandatoryPointers = [], requiredAlgorithm = _requiredAlgorithm} = {}) {

Check failure on line 21 in lib/sign.js

View workflow job for this annotation

GitHub Actions / lint (20.x)

This line has a length of 110. Maximum allowed is 80
const options = {mandatoryPointers};
return {
name,
requiredAlgorithm: algorithm,
requiredAlgorithm,
createVerifier: _throwSignUsageError,
createVerifyData: _createSignData,
createProofValue: _createBaseProofValue,
Expand Down
6 changes: 3 additions & 3 deletions lib/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import {
parseDisclosureProofValue, serializeBaseVerifyData
} from './proofValue.js';
import {name} from './name.js';
import {requiredAlgorithm} from './requiredAlgorithm.js';
import {requiredAlgorithm as _requiredAlgorithm} from './requiredAlgorithm.js';

Check failure on line 17 in lib/verify.js

View workflow job for this annotation

GitHub Actions / lint (20.x)

Imports should be sorted alphabetically

export function createVerifyCryptosuite({algorithm = requiredAlgorithm} = {}) {
export function createVerifyCryptosuite({requiredAlgorithm = _requiredAlgorithm} = {}) {

Check failure on line 19 in lib/verify.js

View workflow job for this annotation

GitHub Actions / lint (20.x)

This line has a length of 88. Maximum allowed is 80
return {
name,
requiredAlgorithm: algorithm,
requiredAlgorithm,
createVerifier,
createVerifyData: _createVerifyData
};
Expand Down

0 comments on commit a1ad18c

Please sign in to comment.