@airgap/coinlib-core 0.13.8-beta.8 → 0.13.8-beta.9
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.
package/package.json
CHANGED
|
@@ -3,12 +3,14 @@ import { ICoinBaseProtocol } from './ICoinBaseProtocol';
|
|
|
3
3
|
export interface ICoinOfflineProtocol extends ICoinBaseProtocol {
|
|
4
4
|
getPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
5
5
|
getPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
6
|
+
getExtendedPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
7
|
+
getExtendedPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
6
8
|
getExtendedPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
9
|
+
getExtendedPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
7
10
|
getPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
8
11
|
getPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
9
12
|
signWithExtendedPrivateKey(extendedPrivateKey: string, transaction: any, childDerivationPath?: string): Promise<IAirGapSignedTransaction>;
|
|
10
13
|
signWithPrivateKey(privateKey: string, transaction: any): Promise<IAirGapSignedTransaction>;
|
|
11
|
-
getExtendedPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
12
14
|
signMessage(message: string, keypair: {
|
|
13
15
|
publicKey?: string;
|
|
14
16
|
privateKey: string;
|
|
@@ -2,6 +2,8 @@ import { IAirGapAddressResult } from '../interfaces/IAirGapAddress';
|
|
|
2
2
|
import { IAirGapTransactionResult, IProtocolTransactionCursor } from '../interfaces/IAirGapTransaction';
|
|
3
3
|
import { FeeDefaults } from './ICoinProtocol';
|
|
4
4
|
export declare abstract class NonExtendedProtocol {
|
|
5
|
+
getExtendedPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
6
|
+
getExtendedPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
5
7
|
getExtendedPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
6
8
|
getExtendedPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
7
9
|
getBalanceOfExtendedPublicKey(extendedPublicKey: string, offset: number): Promise<string>;
|
|
@@ -4,6 +4,12 @@ exports.NonExtendedProtocol = void 0;
|
|
|
4
4
|
var NonExtendedProtocol = /** @class */ (function () {
|
|
5
5
|
function NonExtendedProtocol() {
|
|
6
6
|
}
|
|
7
|
+
NonExtendedProtocol.prototype.getExtendedPublicKeyFromMnemonic = function (mnemonic, derivationPath, password) {
|
|
8
|
+
throw Promise.reject('extended public key support not implemented');
|
|
9
|
+
};
|
|
10
|
+
NonExtendedProtocol.prototype.getExtendedPublicKeyFromHexSecret = function (secret, derivationPath) {
|
|
11
|
+
throw Promise.reject('extended public key support not implemented');
|
|
12
|
+
};
|
|
7
13
|
NonExtendedProtocol.prototype.getExtendedPrivateKeyFromMnemonic = function (mnemonic, derivationPath, password) {
|
|
8
14
|
throw Promise.reject('extended private key support not implemented');
|
|
9
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NonExtendedProtocol.js","sourceRoot":"","sources":["../../src/protocols/NonExtendedProtocol.ts"],"names":[],"mappings":";;;AAKA;IAAA;
|
|
1
|
+
{"version":3,"file":"NonExtendedProtocol.js","sourceRoot":"","sources":["../../src/protocols/NonExtendedProtocol.ts"],"names":[],"mappings":";;;AAKA;IAAA;IA2EA,CAAC;IA1EQ,8DAAgC,GAAvC,UAAwC,QAAgB,EAAE,cAAsB,EAAE,QAAiB;QACjG,MAAM,OAAO,CAAC,MAAM,CAAC,6CAA6C,CAAC,CAAA;IACrE,CAAC;IAE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