We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8b686 commit 46d760eCopy full SHA for 46d760e
packages/crypto/src/secp256k1signature.ts
@@ -125,7 +125,7 @@ export class Secp256k1Signature {
125
126
public toDer(): Uint8Array {
127
// 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
+ // a leading 0 byte when the highest bit is set to differentiate negative values
129
const rEncoded = this.data.r[0] >= 0x80 ? new Uint8Array([0, ...this.data.r]) : this.data.r;
130
const sEncoded = this.data.s[0] >= 0x80 ? new Uint8Array([0, ...this.data.s]) : this.data.s;
131
0 commit comments