Skip to content

Commit

Permalink
docs: update jsdoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
erictaylor committed Nov 20, 2024
1 parent 7b50aa6 commit c42d82c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/serializable/pvm/warp/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { serializable } from '../../common/types';
import { TypeSymbols } from '../../constants';
import { BlsSignature } from '../../fxs/common';
import { Bytes } from '../../primitives';
import { INT_LEN } from '../../primitives/int';

@serializable()
export class WarpSignature {
Expand Down Expand Up @@ -34,13 +33,13 @@ export class WarpSignature {
}

/**
* Number of [bls.PublicKeys] that participated in the
* Number of public keys that participated in the
* {@linkcode BlsSignature}. This is exposed because users of the signatures
* typically impose a verification fee that is a function of the number of signers.
*
* This is used to calculate the Warp complexity in transactions.
*/
numOfSigners(): number {
return hammingWeight(this.signers.toBytes().slice(INT_LEN));
return hammingWeight(this.signers.bytes);
}
}

0 comments on commit c42d82c

Please sign in to comment.