Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to validate the signed transaction #259

Open
marypreethi12 opened this issue Oct 8, 2018 · 0 comments
Open

how to validate the signed transaction #259

marypreethi12 opened this issue Oct 8, 2018 · 0 comments

Comments

@marypreethi12
Copy link

i want to custom validate the transaction signed by client,
const txCreateAliceSimpleSigned = driver.Transaction.signTransaction(txCreateAliceSimple, alice.privateKey)

i tried validating it by using
var buf = Buffer.from(JSON.stringify(txCreateAliceSimpleSigned));
result = ed25519Fulfillment.validate(buf)

but i get invalid signature error
ValidationError: Invalid ed25519 signature base-error.js:40 at Ed25519Sha256.validate (/Users/mary.preethimartis/development/ng-rt-abci-client-sdk/node_modules/crypto-conditions/src/types/ed25519-sha256.js:179:13) at Function.signTransaction (/Users/mary.preethimartis/development/ng-rt-abci-client-sdk/node_modules/bigchaindb-driver/dist/node/transaction.js:343:41) at Object.<anonymous> (/Users/mary.preethimartis/development/ng-rt-abci-client-sdk/client/example.js:46:24) at Module._compile (module.js:649:14) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3

is it even possible to custom validate or it has to be done by bigchain through bigchain api?
any suggestions are appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant