Skip to content

Commit

Permalink
Fix some typos around SDK functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zimnoch committed Oct 16, 2023
1 parent 4d4f45c commit 2343c83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion typescript/src/lib/bitcoin/csuint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function read(varLenData: Hex): {
}
default: {
// The discriminant tells the compact size uint is 1 byte. That means
// the discriminant represent the value itself.
// the discriminant represents the value itself.
return {
value: parseInt(discriminant, 16),
byteLength: 1,
Expand Down
4 changes: 2 additions & 2 deletions typescript/src/lib/bitcoin/ecdsa-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function compressPublicKey(publicKey: string | Hex): string {
}

/**
* Utility functions allowing to perform Bitcoin ECDSA public keys.
* Utility functions allowing to perform operations on Bitcoin ECDSA public keys.
*/
export const BitcoinPublicKeyUtils = {
isCompressedPublicKey,
Expand All @@ -77,7 +77,7 @@ function createKeyPair(
}

/**
* Utility functions allowing to perform Bitcoin ECDSA public keys.
* Utility functions allowing to perform operations on Bitcoin ECDSA private keys.
*/
export const BitcoinPrivateKeyUtils = {
createKeyPair,
Expand Down
2 changes: 1 addition & 1 deletion typescript/test/lib/bitcoin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ describe("Bitcoin", () => {
})

context("when the compact size uint is 1-byte", () => {
it("should return the the uint value and byte length", () => {
it("should return the uint value and byte length", () => {
expect(read(Hex.from("bb"))).to.be.eql({
value: 187,
byteLength: 1,
Expand Down

0 comments on commit 2343c83

Please sign in to comment.