Skip to content

Commit

Permalink
Add mature time check.
Browse files Browse the repository at this point in the history
  • Loading branch information
msinkec committed Dec 1, 2023
1 parent a42e062 commit ac21572
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contracts/bsv20ZeroCouponBond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ export class Bsv20ZeroCouponBond extends BSV20V2 {
// Check issuer sig.
assert(this.checkSig(issuerSig, this.issuer), 'invalid sig issuer')

// Check mature time.
assert(this.timeLock(this.matureTime), 'not matured yet')

// Check oracle signature.
assert(
RabinVerifier.verifySig(oracleMsg, oracleSig, this.oraclePubKey),
Expand Down

0 comments on commit ac21572

Please sign in to comment.