Skip to content

Commit

Permalink
docs: correct Salter constructer args docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kentbull committed Feb 7, 2025
1 parent 2a8ab97 commit b654a0f
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/keri/core/salter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,17 @@ export class Salter extends Matter {
/**
* Creates a Salter from the provided raw salt bytes or generates a random salt if raw is not provided.
* Defaults to low security tier. Only supports Salt_128 salt type.
* @param raw
* @param code
* @param tier
* @param qb64
* @param qb64b
* @param qb2
* @param salterArgs defines the kind of cryptographic seed to create with a variety of raw material initialization sources.
*/
constructor({
raw,
code = MtrDex.Salt_128,
tier = Tier.low,
qb64,
qb64b,
qb2,
}: SalterArgs) {
constructor(salterArgs: SalterArgs) {
const {
raw,
code = MtrDex.Salt_128,
tier = Tier.low,
qb64,
qb64b,
qb2,
} = salterArgs;
try {
super({ raw, code, qb64, qb64b, qb2 });
} catch (e) {
Expand Down

0 comments on commit b654a0f

Please sign in to comment.