Skip to content

Commit

Permalink
Merge pull request #81 from Zondax/fix/device
Browse files Browse the repository at this point in the history
Add ED25519 to app parameters
  • Loading branch information
becominginsane authored Aug 16, 2023
2 parents 7393185 + a32af97 commit abb6a22
Show file tree
Hide file tree
Showing 179 changed files with 391 additions and 396 deletions.
2 changes: 1 addition & 1 deletion app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ endef
$(error "$(error_message)")
endif

APP_LOAD_PARAMS = --curve secp256k1 $(COMMON_LOAD_PARAMS) --path $(APPPATH)
APP_LOAD_PARAMS = --curve secp256k1 --curve ed25519 $(COMMON_LOAD_PARAMS) --path $(APPPATH)

NANOS_STACK_SIZE := 3216
include $(CURDIR)/../deps/ledger-zxlib/makefiles/Makefile.devices
Expand Down
11 changes: 6 additions & 5 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@
"type": "git",
"url": "git+https://github.com/Zondax/ledger-zcash"
},
"keywords": [
"zondax"
],
"keywords": ["zondax"],
"scripts": {
"clean": "ts-node tests/pullImageKillOld.ts",
"test": "yarn clean && jest --maxConcurrency 2"
"test": "yarn clean && jest --maxConcurrency 2",
"try": "ts-node try.ts"
},
"dependencies": {
"@zondax/ledger-zcash": "link:../js",
"@zondax/zcashtools": "link:../zcashtools/neon",
"@zondax/zemu": "^0.43.1"
"@zondax/zemu": "^0.44.0"
},
"devDependencies": {
"@ledgerhq/hw-transport-node-hid": "^6.27.19",
"@ledgerhq/logs": "^6.10.1",
"@types/jest": "^28.1.1",
"@types/ledgerhq__hw-transport": "^4.21.4",
"@typescript-eslint/eslint-plugin": "^5.27.1",
Expand Down
Binary file modified tests_zemu/snapshots/s-builder-addr-diff-to-inittx-addr/00021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-builder-addr-diff-to-inittx-addr/00022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-builder-addr-diff-to-inittx-addr/00023.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-ext-more-sigs-than-needed-for-tx/00021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-ext-more-sigs-than-needed-for-tx/00022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-ext-more-sigs-than-needed-for-tx/00023.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-not-using-ledger-rnd-for-tx/00021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-not-using-ledger-rnd-for-tx/00022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-not-using-ledger-rnd-for-tx/00023.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-not-using-ledger-rnd-for-tx/00024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-builder-addr-diff-to-inittx-addr/00017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-builder-addr-diff-to-inittx-addr/00018.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-builder-addr-diff-to-inittx-addr/00020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-ext-more-sigs-than-needed-for-tx/00017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-ext-more-sigs-than-needed-for-tx/00018.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-ext-more-sigs-than-needed-for-tx/00020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-not-using-ledger-rnd-for-tx/00017.png
Binary file modified tests_zemu/snapshots/sp-not-using-ledger-rnd-for-tx/00018.png
Binary file modified tests_zemu/snapshots/sp-not-using-ledger-rnd-for-tx/00019.png
Binary file modified tests_zemu/snapshots/sp-not-using-ledger-rnd-for-tx/00020.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00000.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00001.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00002.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00003.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00004.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00005.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00006.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00007.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-spend-2-sh-out/00008.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-tr-out-1-spend-2-sh-out/00001.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-tr-out-1-spend-2-sh-out/00002.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-tr-out-1-spend-2-sh-out/00003.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-tr-out-1-spend-2-sh-out/00005.png
Binary file modified tests_zemu/snapshots/st-1-tr-in-1-tr-out-1-spend-2-sh-out/00006.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00000.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00001.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00002.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00003.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00004.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00005.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00006.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00007.png
Binary file modified tests_zemu/snapshots/st-1-tr-out-1-spend-2-sh-out/00008.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00000.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00001.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00002.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00003.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00004.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00005.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00006.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00007.png
Binary file modified tests_zemu/snapshots/st-2-spend-2-out/00008.png
Binary file modified tests_zemu/snapshots/st-2-tr-in-2-tr-out/00000.png
Binary file modified tests_zemu/snapshots/st-2-tr-in-2-tr-out/00001.png
Binary file modified tests_zemu/snapshots/st-2-tr-in-2-tr-out/00002.png
Binary file modified tests_zemu/snapshots/st-2-tr-in-2-tr-out/00003.png
Binary file modified tests_zemu/snapshots/st-2-tr-in-2-tr-out/00004.png
Binary file modified tests_zemu/snapshots/st-2-tr-in-2-tr-out/00005.png
Binary file modified tests_zemu/snapshots/st-builder-addr-diff-to-inittx-addr/00000.png
Binary file modified tests_zemu/snapshots/st-builder-addr-diff-to-inittx-addr/00001.png
Binary file modified tests_zemu/snapshots/st-builder-addr-diff-to-inittx-addr/00002.png
Binary file modified tests_zemu/snapshots/st-builder-addr-diff-to-inittx-addr/00003.png
Binary file modified tests_zemu/snapshots/st-builder-addr-diff-to-inittx-addr/00004.png
Binary file modified tests_zemu/snapshots/st-builder-addr-diff-to-inittx-addr/00005.png
Binary file modified tests_zemu/snapshots/st-builder-addr-diff-to-inittx-addr/00007.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00000.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00001.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00002.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00003.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00004.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00005.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00006.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00007.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00008.png
Binary file modified tests_zemu/snapshots/st-ext-data-after-tx-reject/00009.png
Binary file modified tests_zemu/snapshots/st-ext-more-sigs-than-needed-for-tx/00000.png
Binary file modified tests_zemu/snapshots/st-ext-more-sigs-than-needed-for-tx/00001.png
Binary file modified tests_zemu/snapshots/st-ext-more-sigs-than-needed-for-tx/00002.png
Binary file modified tests_zemu/snapshots/st-ext-more-sigs-than-needed-for-tx/00003.png
Binary file modified tests_zemu/snapshots/st-ext-more-sigs-than-needed-for-tx/00004.png
Binary file modified tests_zemu/snapshots/st-ext-more-sigs-than-needed-for-tx/00005.png
Binary file modified tests_zemu/snapshots/st-ext-more-sigs-than-needed-for-tx/00007.png
Binary file modified tests_zemu/snapshots/st-ext-output-without-ext-spend-data/00001.png
Binary file modified tests_zemu/snapshots/st-ext-output-without-ext-spend-data/00002.png
Binary file modified tests_zemu/snapshots/st-ext-output-without-ext-spend-data/00003.png
Binary file modified tests_zemu/snapshots/st-ext-output-without-ext-spend-data/00004.png
Binary file modified tests_zemu/snapshots/st-ext-output-without-ext-spend-data/00005.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00000.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00001.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00002.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00003.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00004.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00005.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00006.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00007.png
Binary file modified tests_zemu/snapshots/st-ext-sig-without-checkandsign/00008.png
Binary file modified tests_zemu/snapshots/st-get-fvk/00000.png
Binary file modified tests_zemu/snapshots/st-get-fvk/00001.png
Binary file modified tests_zemu/snapshots/st-get-fvk/00002.png
Binary file modified tests_zemu/snapshots/st-get-fvk/00003.png
Binary file modified tests_zemu/snapshots/st-get-ivk/00000.png
Binary file modified tests_zemu/snapshots/st-get-ivk/00001.png
Binary file modified tests_zemu/snapshots/st-get-ivk/00002.png
Binary file modified tests_zemu/snapshots/st-get-ivk/00003.png
Binary file modified tests_zemu/snapshots/st-get-nullifier/00000.png
Binary file modified tests_zemu/snapshots/st-get-nullifier/00001.png
Binary file modified tests_zemu/snapshots/st-get-nullifier/00002.png
Binary file modified tests_zemu/snapshots/st-get-nullifier/00003.png
Binary file modified tests_zemu/snapshots/st-get-ovk/00000.png
Binary file modified tests_zemu/snapshots/st-get-ovk/00001.png
Binary file modified tests_zemu/snapshots/st-get-ovk/00002.png
Binary file modified tests_zemu/snapshots/st-get-ovk/00003.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00000.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00001.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00002.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00003.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00005.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00000.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00001.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00002.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00003.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00004.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00005.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00006.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00007.png
Binary file modified tests_zemu/snapshots/st-not-using-ledger-rnd-for-tx/00008.png
Binary file modified tests_zemu/snapshots/st-show-shielded-addr/00000.png
Binary file modified tests_zemu/snapshots/st-show-shielded-addr/00001.png
Binary file modified tests_zemu/snapshots/st-show-shielded-addr/00002.png
Binary file modified tests_zemu/snapshots/st-show_address_shielded/00000.png
Binary file modified tests_zemu/snapshots/st-show_address_shielded/00001.png
Binary file modified tests_zemu/snapshots/st-show_address_shielded/00002.png
Binary file modified tests_zemu/snapshots/st-show_address_unshielded/00000.png
Binary file modified tests_zemu/snapshots/st-show_address_unshielded/00001.png
Binary file modified tests_zemu/snapshots/st-show_address_unshielded/00002.png
Binary file modified tests_zemu/snapshots/x-builder-addr-diff-to-inittx-addr/00017.png
Binary file modified tests_zemu/snapshots/x-builder-addr-diff-to-inittx-addr/00018.png
Binary file modified tests_zemu/snapshots/x-builder-addr-diff-to-inittx-addr/00020.png
Binary file modified tests_zemu/snapshots/x-ext-more-sigs-than-needed-for-tx/00017.png
Binary file modified tests_zemu/snapshots/x-ext-more-sigs-than-needed-for-tx/00018.png
Binary file modified tests_zemu/snapshots/x-ext-more-sigs-than-needed-for-tx/00020.png
Binary file modified tests_zemu/snapshots/x-not-using-ledger-rnd-for-tx/00017.png
Binary file modified tests_zemu/snapshots/x-not-using-ledger-rnd-for-tx/00018.png
Binary file modified tests_zemu/snapshots/x-not-using-ledger-rnd-for-tx/00019.png
Binary file modified tests_zemu/snapshots/x-not-using-ledger-rnd-for-tx/00020.png
178 changes: 178 additions & 0 deletions tests_zemu/tests/vectors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
export type TIn = {
path: number[],
address: string,
value: number
}
export type TOut = {
address: string,
value: number
}
export type SSpend = {
path: number,
address: string,
value: number
}
export type SOut = {
address: string,
value: number,
memo_type: number,
ovk?: string | null
}

export type TxInputData = {
t_in: TIn[],
t_out: TOut[],
s_spend: SSpend[],
s_output: SOut[],
}

const zero: TxInputData = {
t_in: [],
t_out: [],
s_spend: [{
path: 1000,
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 50000,
}, {
path: 1000,
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 50000,
}],
s_output: [{
address: '15eae700e01e24e2137d554d67bb0da64eee0bf1c2c392c5f1173a979baeb899663808cd22ed8df27566cc',
value: 55000,
memo_type: 0xf6,
ovk: null
},
{
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 100000 - 1000 - 55000,
memo_type: 0xf6,
ovk: '6fc01eaa665e03a53c1e033ed0d77b670cf075ede4ada769997a2ed2ec225fca',
}]
};

const one: TxInputData = {
t_in: [{
path: [44 + 0x80000000, 133 + 0x80000000, 5 + 0x80000000, 0, 0],
address: '1976a9140f71709c4b828df00f93d20aa2c34ae987195b3388ac',
value: 60000,
}],
t_out: [],
s_spend: [{
path: 1000,
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 40000,
}],
s_output: [{
address: '15eae700e01e24e2137d554d67bb0da64eee0bf1c2c392c5f1173a979baeb899663808cd22ed8df27566cc',
value: 65000,
memo_type: 0xf6,
ovk: null,
}, {
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 100000 - 1000 - 55000 - 10000,
memo_type: 0xf6,
ovk: '6fc01eaa665e03a53c1e033ed0d77b670cf075ede4ada769997a2ed2ec225fca',
}]
}

const two: TxInputData = {
t_in: [],
t_out: [{
address: '1976a914000000000000000000000000000000000000000088ac',
value: 10000,
}],
s_spend: [{
path: 1000,
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 100000,
}],
s_output: [{
address: '15eae700e01e24e2137d554d67bb0da64eee0bf1c2c392c5f1173a979baeb899663808cd22ed8df27566cc',
value: 55000,
memo_type: 0xf6,
ovk: null,
}, {
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 100000 - 1000 - 55000 - 10000,
memo_type: 0xf6,
ovk: '6fc01eaa665e03a53c1e033ed0d77b670cf075ede4ada769997a2ed2ec225fca',
}]
}

const three: TxInputData = {
t_in: [{
path: [44 + 0x80000000, 133 + 0x80000000, 5 + 0x80000000, 0, 0],
address: '1976a9140f71709c4b828df00f93d20aa2c34ae987195b3388ac',
value: 60000,
}],
t_out: [{
address: '1976a914000000000000000000000000000000000000000088ac',
value: 10000,
}],
s_spend: [{
path: 1000,
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 40000,
}],
s_output: [{
address: '15eae700e01e24e2137d554d67bb0da64eee0bf1c2c392c5f1173a979baeb899663808cd22ed8df27566cc',
value: 55000,
memo_type: 0xf6,
ovk: null,
}, {
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 100000 - 1000 - 55000 - 10000,
memo_type: 0xf6,
ovk: '6fc01eaa665e03a53c1e033ed0d77b670cf075ede4ada769997a2ed2ec225fca',
}]
}

const four: TxInputData = {
t_in: [{
path: [44 + 0x80000000, 133 + 0x80000000, 5 + 0x80000000, 0, 0],
address: '1976a9140f71709c4b828df00f93d20aa2c34ae987195b3388ac',
value: 50000,
}, {
path: [44 + 0x80000000, 133 + 0x80000000, 5 + 0x80000000, 0, 0],
address: '1976a9140f71709c4b828df00f93d20aa2c34ae987195b3388ac',
value: 50000,
}],
t_out: [{
address: '1976a914000000000000000000000000000000000000000088ac',
value: 10000,
}, {
address: '1976a9140f71709c4b828df00f93d20aa2c34ae987195b3388ac',
value: 100000 - 1000 - 10000,
}],
s_spend: [],
s_output: []
};

const five: TxInputData = {
t_in: [],
t_out: [],
s_spend: [{
path: 1000,
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 50000,
}, {
path: 1000,
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 50000,
}],
s_output: [{
address: '15eae700e01e24e2137d554d67bb0da64eee0bf1c2c392c5f1173a979baeb899663808cd22ed8df27566cc',
value: 55000,
memo_type: 0xf6,
ovk: null,
}, {
address: 'c69e979c6763c1b09238dc6bd5dcbf35360df95dcadf8c0fa25dcbedaaf6057538b812d06656726ea27667',
value: 100000 - 1000 - 55000,
memo_type: 0xf6,
ovk: null,
}]
};

export const TX_INPUT_DATA: TxInputData[] = [zero, one, two, three, four, five];
Loading

0 comments on commit abb6a22

Please sign in to comment.