@okxweb3/coin-xrp 2.4.9 → 2.4.10
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 +3 -3
- package/dist/XrpWallet.d.ts +0 -16
- package/dist/XrpWallet.js +0 -163
- package/dist/XrpWallet.js.map +0 -1
- package/dist/common.d.ts +0 -66
- package/dist/common.js +0 -118
- package/dist/common.js.map +0 -1
- package/dist/const.d.ts +0 -5
- package/dist/const.js +0 -15
- package/dist/const.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okxweb3/coin-xrp",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.10",
|
|
4
4
|
"description": "An XRP SDK for building Web3 wallets and applications.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"nock": "^14.0.4"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@okxweb3/coin-base": "^2.0.
|
|
45
|
-
"@okxweb3/crypto-lib": "2.0.
|
|
44
|
+
"@okxweb3/coin-base": "^2.0.7",
|
|
45
|
+
"@okxweb3/crypto-lib": "2.0.6",
|
|
46
46
|
"ripple-keypairs": "2.0.0",
|
|
47
47
|
"xrpl": "4.2.5"
|
|
48
48
|
}
|
package/dist/XrpWallet.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseWallet, CalcTxHashParams, GetDerivedPathParam, NewAddressParams, SignCommonMsgParams, SignTxParams, ValidAddressParams, ValidPrivateKeyParams, VerifyMessageParams } from '@okxweb3/coin-base';
|
|
2
|
-
import { DerivePriKeyParams } from './common';
|
|
3
|
-
export declare class XrpWallet extends BaseWallet {
|
|
4
|
-
getDerivedPath(param: GetDerivedPathParam): Promise<any>;
|
|
5
|
-
getRandomPrivateKey(): Promise<any>;
|
|
6
|
-
getDerivedPrivateKey(param: DerivePriKeyParams): Promise<any>;
|
|
7
|
-
validPrivateKey(param: ValidPrivateKeyParams): Promise<any>;
|
|
8
|
-
checkPrivateKey(privateKey: string): boolean;
|
|
9
|
-
getNewAddress(param: NewAddressParams): Promise<any>;
|
|
10
|
-
signTransaction(param: SignTxParams): Promise<any>;
|
|
11
|
-
validAddress(param: ValidAddressParams): Promise<any>;
|
|
12
|
-
calcTxHash(param: CalcTxHashParams): Promise<string>;
|
|
13
|
-
signMessage(param: SignTxParams): Promise<string>;
|
|
14
|
-
verifyMessage(param: VerifyMessageParams): Promise<boolean>;
|
|
15
|
-
signCommonMsg(params: SignCommonMsgParams): Promise<any>;
|
|
16
|
-
}
|
package/dist/XrpWallet.js
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XrpWallet = void 0;
|
|
4
|
-
const coin_base_1 = require("@okxweb3/coin-base");
|
|
5
|
-
const coin_base_2 = require("@okxweb3/coin-base");
|
|
6
|
-
const xrpl_1 = require("xrpl");
|
|
7
|
-
const common_1 = require("./common");
|
|
8
|
-
const const_1 = require("./const");
|
|
9
|
-
const ripple_keypairs_1 = require("ripple-keypairs");
|
|
10
|
-
class XrpWallet extends coin_base_1.BaseWallet {
|
|
11
|
-
async getDerivedPath(param) {
|
|
12
|
-
return `m/44'/144'/0'/0/${param.index}`;
|
|
13
|
-
}
|
|
14
|
-
async getRandomPrivateKey() {
|
|
15
|
-
try {
|
|
16
|
-
const w = xrpl_1.Wallet.generate();
|
|
17
|
-
return Promise.resolve(w.privateKey);
|
|
18
|
-
}
|
|
19
|
-
catch (e) {
|
|
20
|
-
return Promise.reject(coin_base_1.GenPrivateKeyError);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
async getDerivedPrivateKey(param) {
|
|
24
|
-
try {
|
|
25
|
-
const words = param.mnemonic.split(' ');
|
|
26
|
-
if (words.length < 12) {
|
|
27
|
-
return Promise.reject(coin_base_1.GenPrivateKeyError);
|
|
28
|
-
}
|
|
29
|
-
const w = xrpl_1.Wallet.fromMnemonic(param.mnemonic, {
|
|
30
|
-
derivationPath: param.hdPath,
|
|
31
|
-
masterAddress: param.masterAddress,
|
|
32
|
-
mnemonicEncoding: param.mnemonicEncoding,
|
|
33
|
-
algorithm: param.algorithm,
|
|
34
|
-
});
|
|
35
|
-
return w.privateKey;
|
|
36
|
-
}
|
|
37
|
-
catch (e) {
|
|
38
|
-
return Promise.reject(coin_base_1.GenPrivateKeyError);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
validPrivateKey(param) {
|
|
42
|
-
const data = {
|
|
43
|
-
isValid: this.checkPrivateKey(param.privateKey),
|
|
44
|
-
privateKey: param.privateKey,
|
|
45
|
-
};
|
|
46
|
-
return Promise.resolve(data);
|
|
47
|
-
}
|
|
48
|
-
checkPrivateKey(privateKey) {
|
|
49
|
-
if ((0, coin_base_1.isHexStr)(privateKey)) {
|
|
50
|
-
const keyBytes = coin_base_2.base.fromHex(privateKey.toLowerCase());
|
|
51
|
-
if (keyBytes.every((byte) => byte === 0)) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
if (keyBytes.length == 33) {
|
|
55
|
-
if (!privateKey.toUpperCase().startsWith(const_1.PREFIX_ED25519) &&
|
|
56
|
-
!privateKey.toUpperCase().startsWith(const_1.PREFIX_SECP256K1)) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
return keyBytes.slice(1).some((b) => b !== 0);
|
|
60
|
-
}
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
if (privateKey.toLowerCase() == const_1.ZERO_SEED_ED25519.toLowerCase() ||
|
|
65
|
-
privateKey.toLowerCase() == const_1.ZERO_SEED_SECP256.toLowerCase()) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
try {
|
|
69
|
-
const w = xrpl_1.Wallet.fromSeed(privateKey);
|
|
70
|
-
return !(0, common_1.isInValidAddress)(w.address);
|
|
71
|
-
}
|
|
72
|
-
catch (e) {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
getNewAddress(param) {
|
|
78
|
-
try {
|
|
79
|
-
if (!this.checkPrivateKey(param.privateKey)) {
|
|
80
|
-
return Promise.reject(coin_base_1.NewAddressError);
|
|
81
|
-
}
|
|
82
|
-
const w = (0, common_1.createWallet)(param.privateKey, param.addressType);
|
|
83
|
-
if ((0, common_1.isInValidAddress)(w.address)) {
|
|
84
|
-
return Promise.reject(coin_base_1.NewAddressError);
|
|
85
|
-
}
|
|
86
|
-
return Promise.resolve({
|
|
87
|
-
address: w.address,
|
|
88
|
-
publicKey: w.publicKey,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
catch (e) {
|
|
92
|
-
return Promise.reject(coin_base_1.NewAddressError);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
signTransaction(param) {
|
|
96
|
-
try {
|
|
97
|
-
if (!param.privateKey) {
|
|
98
|
-
return Promise.reject(coin_base_1.InvalidPrivateKeyError);
|
|
99
|
-
}
|
|
100
|
-
const privateKey = param.privateKey;
|
|
101
|
-
const w = (0, common_1.createWallet)(privateKey);
|
|
102
|
-
const xrpParam = param.data;
|
|
103
|
-
const tx = (0, common_1.convertTxParam)(xrpParam, w.address);
|
|
104
|
-
return Promise.resolve(w.sign(tx));
|
|
105
|
-
}
|
|
106
|
-
catch (e) {
|
|
107
|
-
return Promise.reject(coin_base_1.SignTxError);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
validAddress(param) {
|
|
111
|
-
const hasValidPrefix = param.address.startsWith('r') || param.address.startsWith('X');
|
|
112
|
-
const isValid = !(0, common_1.isInValidAddress)(param.address) && hasValidPrefix;
|
|
113
|
-
return Promise.resolve({
|
|
114
|
-
isValid,
|
|
115
|
-
address: param.address,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
calcTxHash(param) {
|
|
119
|
-
return Promise.resolve(xrpl_1.hashes.hashSignedTx(param.data));
|
|
120
|
-
}
|
|
121
|
-
async signMessage(param) {
|
|
122
|
-
if (!param.privateKey) {
|
|
123
|
-
return Promise.reject(`${coin_base_1.InvalidPrivateKeyError}: cannot be empty`);
|
|
124
|
-
}
|
|
125
|
-
const { isValid } = await this.validPrivateKey({
|
|
126
|
-
privateKey: param.privateKey,
|
|
127
|
-
});
|
|
128
|
-
if (!isValid) {
|
|
129
|
-
return Promise.reject(`${coin_base_1.InvalidPrivateKeyError}: not valid private key`);
|
|
130
|
-
}
|
|
131
|
-
const w = (0, common_1.createWallet)(param.privateKey);
|
|
132
|
-
const msg = param.data;
|
|
133
|
-
return Promise.resolve((0, ripple_keypairs_1.sign)((0, common_1.transferMsgPayload)(msg), w.privateKey).toString());
|
|
134
|
-
}
|
|
135
|
-
verifyMessage(param) {
|
|
136
|
-
const msg = param.data;
|
|
137
|
-
return Promise.resolve((0, ripple_keypairs_1.verify)((0, common_1.transferMsgPayload)(msg.message), param.signature, msg.publicKey));
|
|
138
|
-
}
|
|
139
|
-
signCommonMsg(params) {
|
|
140
|
-
const w = (0, common_1.createWallet)(params.privateKey);
|
|
141
|
-
if (w.privateKey.length != 66) {
|
|
142
|
-
return Promise.reject('Invalid private key');
|
|
143
|
-
}
|
|
144
|
-
if ((0, common_1.isEd25519PrivateKey)(w.privateKey)) {
|
|
145
|
-
return super.signCommonMsg({
|
|
146
|
-
privateKey: w.privateKey,
|
|
147
|
-
privateKeyHex: w.privateKey.slice(2),
|
|
148
|
-
message: params.message,
|
|
149
|
-
signType: coin_base_1.SignType.ED25519,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return super.signCommonMsg({
|
|
154
|
-
privateKey: w.privateKey,
|
|
155
|
-
privateKeyHex: w.privateKey.slice(2),
|
|
156
|
-
message: params.message,
|
|
157
|
-
signType: coin_base_1.SignType.Secp256k1,
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
exports.XrpWallet = XrpWallet;
|
|
163
|
-
//# sourceMappingURL=XrpWallet.js.map
|
package/dist/XrpWallet.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"XrpWallet.js","sourceRoot":"","sources":["../src/XrpWallet.ts"],"names":[],"mappings":";;;AAAA,kDAiB4B;AAC5B,kDAA0C;AAC1C,+BAAsC;AACtC,qCAUkB;AAClB,mCAKiB;AACjB,qDAA+C;AAE/C,MAAa,SAAU,SAAQ,sBAAU;IACrC,KAAK,CAAC,cAAc,CAAC,KAA0B;QAC3C,OAAO,mBAAmB,KAAK,CAAC,KAAK,EAAE,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,mBAAmB;QACrB,IAAI;YACA,MAAM,CAAC,GAAG,aAAM,CAAC,QAAQ,EAAE,CAAC;YAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;SACxC;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,OAAO,CAAC,MAAM,CAAC,8BAAkB,CAAC,CAAC;SAC7C;IACL,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,KAAyB;QAChD,IAAI;YACA,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxC,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE;gBACnB,OAAO,OAAO,CAAC,MAAM,CAAC,8BAAkB,CAAC,CAAC;aAC7C;YACD,MAAM,CAAC,GAAG,aAAM,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE;gBAC1C,cAAc,EAAE,KAAK,CAAC,MAAM;gBAC5B,aAAa,EAAE,KAAK,CAAC,aAAa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CAAC;SACN;IACL,CAAC;CACJ;AAhLD,8BAgLC"}
|
package/dist/common.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { TrustSet, Wallet } from 'xrpl';
|
|
2
|
-
import { Amount, IssuedCurrencyAmount, Memo, MPTAmount, Path, Signer } from 'xrpl/src/models/common';
|
|
3
|
-
import { Payment, PaymentFlagsInterface } from 'xrpl/src/models/transactions/payment';
|
|
4
|
-
import { Account, GlobalFlags } from 'xrpl/src/models/transactions/common';
|
|
5
|
-
import ECDSA from 'xrpl/src/ECDSA';
|
|
6
|
-
export type DerivePriKeyParams = {
|
|
7
|
-
mnemonic: string;
|
|
8
|
-
hdPath: string;
|
|
9
|
-
masterAddress?: string;
|
|
10
|
-
mnemonicEncoding?: 'bip39' | 'rfc1751';
|
|
11
|
-
algorithm?: ECDSA;
|
|
12
|
-
};
|
|
13
|
-
export type XrpParam = {
|
|
14
|
-
type: 'transfer' | 'TrustSet';
|
|
15
|
-
base: XrpBasePram;
|
|
16
|
-
data: any;
|
|
17
|
-
};
|
|
18
|
-
export type XrpBasePram = {
|
|
19
|
-
account: Account;
|
|
20
|
-
fee: string;
|
|
21
|
-
sequence: number | string;
|
|
22
|
-
accountTxnID?: string;
|
|
23
|
-
flags?: number | GlobalFlags;
|
|
24
|
-
lastLedgerSequence?: number | string;
|
|
25
|
-
memos?: Memo[];
|
|
26
|
-
signers?: Signer[];
|
|
27
|
-
sourceTag?: number;
|
|
28
|
-
signingPubKey?: string;
|
|
29
|
-
ticketSequence?: number;
|
|
30
|
-
txnSignature?: string;
|
|
31
|
-
networkID?: number;
|
|
32
|
-
};
|
|
33
|
-
export type PaymentTxParam = {
|
|
34
|
-
amount: Amount | MPTAmount;
|
|
35
|
-
destination: Account;
|
|
36
|
-
destinationTag?: number;
|
|
37
|
-
invoiceID?: string;
|
|
38
|
-
paths?: Path[];
|
|
39
|
-
sendMax?: Amount | MPTAmount;
|
|
40
|
-
deliverMin?: Amount | MPTAmount;
|
|
41
|
-
credentialIDs?: string[];
|
|
42
|
-
flags?: number | PaymentFlagsInterface;
|
|
43
|
-
};
|
|
44
|
-
export type TrustSetParam = {
|
|
45
|
-
limitAmount: IssuedCurrencyAmount;
|
|
46
|
-
qualityIn?: number;
|
|
47
|
-
qualityOut?: number;
|
|
48
|
-
flags?: number;
|
|
49
|
-
};
|
|
50
|
-
export type SignMessageRequest = {
|
|
51
|
-
messageId: string;
|
|
52
|
-
url: string;
|
|
53
|
-
title: string;
|
|
54
|
-
favicon: string | null | undefined;
|
|
55
|
-
message: string;
|
|
56
|
-
};
|
|
57
|
-
export type VerifyMessageSig = {
|
|
58
|
-
message: SignMessageRequest;
|
|
59
|
-
publicKey: string;
|
|
60
|
-
};
|
|
61
|
-
export declare function isInValidAddress(addr: string): boolean;
|
|
62
|
-
export declare function convertTxParam(xrpParam: XrpParam, account: string): Payment | TrustSet;
|
|
63
|
-
export declare function isSecp256PrivateKey(privateKey: string): boolean;
|
|
64
|
-
export declare function isEd25519PrivateKey(privateKey: string): boolean;
|
|
65
|
-
export declare function createWallet(seedOrPrivate: string, addressType?: string): Wallet;
|
|
66
|
-
export declare function transferMsgPayload(msg: SignMessageRequest): string;
|
package/dist/common.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transferMsgPayload = exports.createWallet = exports.isEd25519PrivateKey = exports.isSecp256PrivateKey = exports.convertTxParam = exports.isInValidAddress = void 0;
|
|
4
|
-
const coin_base_1 = require("@okxweb3/coin-base");
|
|
5
|
-
const crypto_lib_1 = require("@okxweb3/crypto-lib");
|
|
6
|
-
const coin_base_2 = require("@okxweb3/coin-base");
|
|
7
|
-
const xrpl_1 = require("xrpl");
|
|
8
|
-
const const_1 = require("./const");
|
|
9
|
-
function isInValidAddress(addr) {
|
|
10
|
-
if (const_1.INVALID_ADDRESS.includes(addr)) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
return !(0, xrpl_1.isValidClassicAddress)(addr) && !(0, xrpl_1.isValidXAddress)(addr);
|
|
14
|
-
}
|
|
15
|
-
exports.isInValidAddress = isInValidAddress;
|
|
16
|
-
function convertTxParam(xrpParam, account) {
|
|
17
|
-
const baseParm = xrpParam.base;
|
|
18
|
-
const tx = convertTxParamInner(xrpParam, account);
|
|
19
|
-
if (baseParm.lastLedgerSequence) {
|
|
20
|
-
tx.LastLedgerSequence =
|
|
21
|
-
typeof baseParm.lastLedgerSequence == 'string'
|
|
22
|
-
? Number(baseParm.lastLedgerSequence)
|
|
23
|
-
: baseParm.lastLedgerSequence;
|
|
24
|
-
}
|
|
25
|
-
return tx;
|
|
26
|
-
}
|
|
27
|
-
exports.convertTxParam = convertTxParam;
|
|
28
|
-
function convertTxParamInner(xrpParam, account) {
|
|
29
|
-
const baseParm = xrpParam.base;
|
|
30
|
-
const sequence = typeof baseParm.sequence == 'string'
|
|
31
|
-
? Number(baseParm.sequence)
|
|
32
|
-
: baseParm.sequence;
|
|
33
|
-
switch (xrpParam.type) {
|
|
34
|
-
case 'transfer': {
|
|
35
|
-
const txP = xrpParam.data;
|
|
36
|
-
if (isInValidAddress(txP.destination)) {
|
|
37
|
-
throw new Error(`Invalid destination address: ${txP.destination}`);
|
|
38
|
-
}
|
|
39
|
-
const tx = {
|
|
40
|
-
TransactionType: 'Payment',
|
|
41
|
-
Account: account,
|
|
42
|
-
Amount: txP.amount,
|
|
43
|
-
Destination: txP.destination,
|
|
44
|
-
Sequence: sequence,
|
|
45
|
-
Fee: baseParm.fee,
|
|
46
|
-
DestinationTag: txP.destinationTag,
|
|
47
|
-
InvoiceID: txP.invoiceID,
|
|
48
|
-
Paths: txP.paths,
|
|
49
|
-
SendMax: txP.sendMax,
|
|
50
|
-
DeliverMin: txP.deliverMin,
|
|
51
|
-
CredentialIDs: txP.credentialIDs,
|
|
52
|
-
Flags: txP.flags,
|
|
53
|
-
};
|
|
54
|
-
return tx;
|
|
55
|
-
}
|
|
56
|
-
case 'TrustSet': {
|
|
57
|
-
const txP = xrpParam.data;
|
|
58
|
-
const tx = {
|
|
59
|
-
TransactionType: 'TrustSet',
|
|
60
|
-
Account: account,
|
|
61
|
-
Sequence: sequence,
|
|
62
|
-
Fee: baseParm.fee,
|
|
63
|
-
LimitAmount: txP.limitAmount,
|
|
64
|
-
QualityIn: txP.qualityIn,
|
|
65
|
-
QualityOut: txP.qualityOut,
|
|
66
|
-
Flags: txP.flags,
|
|
67
|
-
};
|
|
68
|
-
return tx;
|
|
69
|
-
}
|
|
70
|
-
default:
|
|
71
|
-
throw new Error(coin_base_1.SignTxError);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function isSecp256PrivateKey(privateKey) {
|
|
75
|
-
return (0, coin_base_1.isHexStr)(privateKey) && privateKey.startsWith('00');
|
|
76
|
-
}
|
|
77
|
-
exports.isSecp256PrivateKey = isSecp256PrivateKey;
|
|
78
|
-
function isEd25519PrivateKey(privateKey) {
|
|
79
|
-
return ((0, coin_base_1.isHexStr)(privateKey) &&
|
|
80
|
-
(privateKey.startsWith('ED') || privateKey.startsWith('ed')));
|
|
81
|
-
}
|
|
82
|
-
exports.isEd25519PrivateKey = isEd25519PrivateKey;
|
|
83
|
-
function createWallet(seedOrPrivate, addressType) {
|
|
84
|
-
if ((0, coin_base_1.isHexStr)(seedOrPrivate)) {
|
|
85
|
-
let pubKeyHex;
|
|
86
|
-
if (seedOrPrivate.startsWith('00') && seedOrPrivate.length == 66) {
|
|
87
|
-
let pubKey = crypto_lib_1.signUtil.secp256k1.publicKeyCreate(coin_base_2.base.fromHex(seedOrPrivate.slice(2)), true);
|
|
88
|
-
pubKeyHex = coin_base_2.base.toHex(pubKey);
|
|
89
|
-
}
|
|
90
|
-
else if (seedOrPrivate.startsWith('ED') &&
|
|
91
|
-
seedOrPrivate.length == 66) {
|
|
92
|
-
let pubKey = crypto_lib_1.signUtil.ed25519.publicKeyCreate(coin_base_2.base.fromHex(seedOrPrivate.slice(2)));
|
|
93
|
-
pubKeyHex = 'ED' + coin_base_2.base.toHex(pubKey);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
throw new Error(coin_base_1.NewAddressError);
|
|
97
|
-
}
|
|
98
|
-
return new xrpl_1.Wallet(pubKeyHex.toUpperCase(), seedOrPrivate);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return xrpl_1.Wallet.fromSeed(seedOrPrivate);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.createWallet = createWallet;
|
|
105
|
-
function transferMsgPayload(msg) {
|
|
106
|
-
let fullMessage = '';
|
|
107
|
-
fullMessage = fullMessage.concat('messageId: ', msg.messageId);
|
|
108
|
-
fullMessage = fullMessage.concat('\nurl: ', msg.url);
|
|
109
|
-
fullMessage = fullMessage.concat('\ntitle: ', msg.title);
|
|
110
|
-
if (msg.favicon) {
|
|
111
|
-
fullMessage = fullMessage.concat('\nfavicon: ', msg.favicon);
|
|
112
|
-
}
|
|
113
|
-
fullMessage = fullMessage.concat('\nmessage: ', msg.message);
|
|
114
|
-
const textEncoder = new TextEncoder();
|
|
115
|
-
return coin_base_2.base.toHex(Buffer.from(textEncoder.encode(fullMessage)));
|
|
116
|
-
}
|
|
117
|
-
exports.transferMsgPayload = transferMsgPayload;
|
|
118
|
-
//# sourceMappingURL=common.js.map
|
package/dist/common.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;AAAA,kDAA4E;AAC5E,oDAA+C;AAC/C,kDAA0C;AAC1C,+BAAgF;AAehF,mCAA0C;AAkE1C,SAAgB,gBAAgB,CAAC,IAAY;IACzC,IAAI,uBAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QAChC,OAAO,IAAI,CAAC;KACf;IAED,OAAO,CAAC,IAAA,4BAAqB,EAAC,IAAI,CAAC,IAAI,CAAC,IAAA,sB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GAAG,CAAC,OAAO,EAAE;QACb,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;KAChE;IACD,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7D,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;IACtC,OAAO,gBAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC;AAXD,gDAWC"}
|
package/dist/const.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const ZERO_SEED_ED25519 = "sEdSJHS4oiAdz7w2X2ni1gFiqtbJHqE";
|
|
2
|
-
export declare const ZERO_SEED_SECP256 = "sp6JS7f14BuwFY8Mw6bTtLKWauoUs";
|
|
3
|
-
export declare const INVALID_ADDRESS: string[];
|
|
4
|
-
export declare const PREFIX_ED25519 = "ED";
|
|
5
|
-
export declare const PREFIX_SECP256K1 = "00";
|
package/dist/const.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PREFIX_SECP256K1 = exports.PREFIX_ED25519 = exports.INVALID_ADDRESS = exports.ZERO_SEED_SECP256 = exports.ZERO_SEED_ED25519 = void 0;
|
|
4
|
-
exports.ZERO_SEED_ED25519 = 'sEdSJHS4oiAdz7w2X2ni1gFiqtbJHqE';
|
|
5
|
-
exports.ZERO_SEED_SECP256 = 'sp6JS7f14BuwFY8Mw6bTtLKWauoUs';
|
|
6
|
-
exports.INVALID_ADDRESS = [
|
|
7
|
-
'rrrrrrrrrrrrrrrrrrrrrhoLvTp',
|
|
8
|
-
'rrrrrrrrrrrrrrrrrrrrBZbvji',
|
|
9
|
-
'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
|
|
10
|
-
'rrrrrrrrrrrrrrrrrNAMEtxvNvQ',
|
|
11
|
-
'rrrrrrrrrrrrrrrrrrrn5RM1rHd',
|
|
12
|
-
];
|
|
13
|
-
exports.PREFIX_ED25519 = 'ED';
|
|
14
|
-
exports.PREFIX_SECP256K1 = '00';
|
|
15
|
-
//# sourceMappingURL=const.js.map
|
package/dist/const.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.js","sourceRoot":"","sources":["../src/const.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,iCAAiC,CAAC;AACtD,QAAA,iBAAiB,GAAG,+BAA+B,CAAC;AAIpD,QAAA,eAAe,GAAG;IAC3B,6BAA6B;IAC7B,4BAA4B;IAC5B,oCAAoC;IACpC,6BAA6B;IAC7B,6BAA6B;CAChC,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,CAAC;AACtB,QAAA,gBAAgB,GAAG,IAAI,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './XrpWallet';
|
package/dist/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./XrpWallet"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|