Skip to content

Commit

Permalink
Remove isCompressed der sigs, unused
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 8, 2023
1 parent 3b72151 commit bcfb393
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,11 @@ export class Signature {
}

// DER-encoded
toDERRawBytes(isCompressed = false) {
return hexToBytes(this.toDERHex(isCompressed));
toDERRawBytes() {
return hexToBytes(this.toDERHex());
}
toDERHex(isCompressed = false) {
toDERHex() {
const sHex = sliceDER(numberToHexUnpadded(this.s));
if (isCompressed) return sHex;
const rHex = sliceDER(numberToHexUnpadded(this.r));
const rLen = numberToHexUnpadded(rHex.length / 2);
const sLen = numberToHexUnpadded(sHex.length / 2);
Expand Down

0 comments on commit bcfb393

Please sign in to comment.