@trustwallet/wallet-core 3.0.5 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -521,6 +521,7 @@ export class Derivation {
521
521
  static custom: Derivation;
522
522
  static bitcoinSegwit: Derivation;
523
523
  static bitcoinLegacy: Derivation;
524
+ static bitcoinTestnet: Derivation;
524
525
  static litecoinLegacy: Derivation;
525
526
  static solanaSolana: Derivation;
526
527
  }
@@ -653,6 +654,10 @@ export class HDWallet {
653
654
  getExtendedPublicKeyDerivation(purpose: Purpose, coin: CoinType, derivation: Derivation, version: HDVersion): string;
654
655
  delete(): void;
655
656
  }
657
+ export class BitcoinMessageSigner {
658
+ static signMessage(privateKey: PrivateKey, address: string, message: string): string;
659
+ static verifyMessage(address: string, message: string, signature: string): boolean;
660
+ }
656
661
  export class FIOAccount {
657
662
  static createWithString(string: string): FIOAccount;
658
663
  description(): string;
@@ -754,6 +759,7 @@ export interface WalletCore {
754
759
  GroestlcoinAddress: typeof GroestlcoinAddress;
755
760
  DerivationPathIndex: typeof DerivationPathIndex;
756
761
  HDWallet: typeof HDWallet;
762
+ BitcoinMessageSigner: typeof BitcoinMessageSigner;
757
763
  FIOAccount: typeof FIOAccount;
758
764
  EthereumAbiFunction: typeof EthereumAbiFunction;
759
765
  describeCurve: typeof describeCurve;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",