Skip to content

Commit 46d760e

Browse files
authored
Update secp256k1signature.ts (#1670)
1 parent 6a8b686 commit 46d760e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/crypto/src/secp256k1signature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class Secp256k1Signature {
125125

126126
public toDer(): Uint8Array {
127127
// DER supports negative integers but our data is unsigned. Thus we need to prepend
128-
// a leading 0 byte when the higest bit is set to differentiate nagative values
128+
// a leading 0 byte when the highest bit is set to differentiate negative values
129129
const rEncoded = this.data.r[0] >= 0x80 ? new Uint8Array([0, ...this.data.r]) : this.data.r;
130130
const sEncoded = this.data.s[0] >= 0x80 ? new Uint8Array([0, ...this.data.s]) : this.data.s;
131131

0 commit comments

Comments
 (0)