Skip to content

Commit

Permalink
docs: add endianess for pubkey byte/buffer functions (#29079)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptopapi997 authored Dec 11, 2022
1 parent 3801514 commit d14dcf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/publickey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ export class PublicKey extends Struct {
}

/**
* Return the byte array representation of the public key
* Return the byte array representation of the public key in big endian
*/
toBytes(): Uint8Array {
return this.toBuffer();
}

/**
* Return the Buffer representation of the public key
* Return the Buffer representation of the public key in big endian
*/
toBuffer(): Buffer {
const b = this._bn.toArrayLike(Buffer);
Expand Down

0 comments on commit d14dcf6

Please sign in to comment.