Skip to content

Commit c5731c3

Browse files
committed
Update docs
1 parent d0c0bd8 commit c5731c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/docs/sdk/instantiation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ You may notice the `SignatureTemplate` object in the [example](#example-8) above
199199

200200
So in the place of a signature, a `SignatureTemplate` can be passed, which will automatically generate the correct signature using the `signer` parameter. This signer can be any representation of a private key, including [BCHJS' `ECPair`][ecpair], [bitcore-lib-cash' `PrivateKey`][privatekey], [WIF strings][wif], or raw private key buffers. This ensures that any BCH library can be used.
201201

202+
The default `hashtype` is `HashType.SIGHASH_ALL | HashType.SIGHASH_UTXOS` because this is the most secure option for smart contract use cases.
203+
202204
```ts
203205
export enum HashType {
204206
SIGHASH_ALL = 0x01,

0 commit comments

Comments
 (0)