Skip to content

Commit b654a0f

Browse files
committed
docs: correct Salter constructer args docs
1 parent 2a8ab97 commit b654a0f

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

src/keri/core/salter.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,17 @@ export class Salter extends Matter {
3232
/**
3333
* Creates a Salter from the provided raw salt bytes or generates a random salt if raw is not provided.
3434
* Defaults to low security tier. Only supports Salt_128 salt type.
35-
* @param raw
36-
* @param code
37-
* @param tier
38-
* @param qb64
39-
* @param qb64b
40-
* @param qb2
35+
* @param salterArgs defines the kind of cryptographic seed to create with a variety of raw material initialization sources.
4136
*/
42-
constructor({
43-
raw,
44-
code = MtrDex.Salt_128,
45-
tier = Tier.low,
46-
qb64,
47-
qb64b,
48-
qb2,
49-
}: SalterArgs) {
37+
constructor(salterArgs: SalterArgs) {
38+
const {
39+
raw,
40+
code = MtrDex.Salt_128,
41+
tier = Tier.low,
42+
qb64,
43+
qb64b,
44+
qb2,
45+
} = salterArgs;
5046
try {
5147
super({ raw, code, qb64, qb64b, qb2 });
5248
} catch (e) {

0 commit comments

Comments
 (0)