eluv-io / elv-client-js

Eluvio JavaScript Client
MIT License
9 stars 12 forks source link

initial implementation of signed message create and decode functions #267

Closed elv-serban closed 8 months ago

elv-serban commented 8 months ago

entitlement: add support for 3rd party purchase flow (deep link into wallet w/ mint) https://github.com/qluvio/elv-apps-projects/issues/243

Sample app for custom app and signed entitlement https://github.com/qluvio/elv-apps-projects/issues/244

matching authd PR is https://github.com/qluvio/elv-master/pull/1128

elv-preethi commented 8 months ago

added signer to DecodeSignedMessageJSON and test in testScripts/CreateAndDecodeSignedMessage.js

node testScripts/CreateAndDecodeSignedMessage.js --msg "{"test":"msg"}" --config-url https://demov3.net955210.contentfabric.io/config
mje_2Pfankacc1Cjsvtc1CAU3wxZduziDf5KmjwXiWYnNSo1KvGRJR6Y6XBZdcWQUyqZfyhYhabwTA513Zsa6tEX6mWeE6A2EuJNtb9sMt12yX
{
  type: 'mje_',
  obj: '{test:msg}',
  addr: '0xBF01001eaF0dE9B7b88BCD2DC0f0577A768Efd19',
  signature: '0xbd3790b4d46277d8903064b919c859049e3c65b176dd454d51f1b6a6bd26b432190e1b91a258dc053f686853f6699585ad979056de3c7a86bf3fc12bc83e9e001c'
}