Assuming an insecure environment, calls need to be made to a JavaScript context to interact with otherwise secure methods. Design & implement a secure messaging API matching the following:
const Service = require('@fabric/core/types/service');
class API extends Service {
async execute (method, params) {
}
_asMerkleTree () {
// must return a Bitcoin-style merkle tree of all historical executions, in order of execution
}
}
Assuming an insecure environment, calls need to be made to a JavaScript context to interact with otherwise secure methods. Design & implement a secure messaging API matching the following: