`
oot@VM-0-11-ubuntu:/www/wwwroot/indy-sdk/samples/nodejs/src# node negotiateProof.js
Set protocol version 2 to work with Indy Node 1.4
Open pool ledger and get handle from libindy
Creates Issuer wallet and opens it to get handle.
Creates Prover wallet and opens it to get handle.
Issuer creates credential definition for schema
Prover creates Link Secret
Issuer create Cred Offer
Prover creates and stores Cred Request
Issuer creates Credential for received Cred Request
Prover processes and stores received Credential
(node:11875) UnhandledPromiseRejectionWarning: IndyError: CommonInvalidState
at Object.callback (/www/wwwroot/indy-sdk/samples/nodejs/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10)
(node:11875) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11875) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
root@VM-0-11-ubuntu:/www/wwwroot/indy-sdk/samples/nodejs/src#
`
Demo link
使用此demo报错如下:
` oot@VM-0-11-ubuntu:/www/wwwroot/indy-sdk/samples/nodejs/src# node negotiateProof.js Set protocol version 2 to work with Indy Node 1.4