diff --git a/src/contracts/bsv20ZeroCouponBond.ts b/src/contracts/bsv20ZeroCouponBond.ts index 656e9d70..324d030c 100644 --- a/src/contracts/bsv20ZeroCouponBond.ts +++ b/src/contracts/bsv20ZeroCouponBond.ts @@ -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),