GithubHelp home page GithubHelp logo

sdk-js's People

Contributors

aamirmaan avatar ab666 avatar akandybaev avatar colin-token avatar colinman avatar daniellin215 avatar drobinson123 avatar embashgit avatar gianluca-token avatar grekinsky avatar heena-ap avatar hillsbr1 avatar hitendra-ap avatar javidang avatar julespatry avatar lahosken avatar mariano54 avatar mikelemanski avatar nikanka-token avatar nilesh-ap avatar priyanshu-ap avatar sam-token avatar sibinlu avatar stanislavsapov avatar vanika-ap avatar vkcr avatar yuhan-token avatar zzltoken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdk-js's Issues

Standing orders PERMISSION_DENIED

Getting account info, balance and transactions works nice and was easy to implement thanks to the really cool expressjs sample app. But retrieving standing orders will return PERMISSION_DENIED.

The docs on your website state:

Get Standing Orders

AISPs can access a given standing order with the standingOrderId or a paged-list of standing order records.

    Get Standing Orders (Currently available only in Java)

If it does not currently work, I'd rather have an exception that states Not supported yet, please see xyz for more info instead of an obscure PERMISSION_DENIED error. This gave me quite some headscratching.

ps. Any info about when this feature will work?

Token.Crypto.verify returns undefined when result is true.

static verify(message, signature, publicKey) { const msg = Util.wrapBuffer(message); const sig = Util.bufferKey(signature); const result = nacl.sign.detached.verify(msg, sig, publicKey); if (!result) { throw new Error( Invalid signature ${signature} on message ${message} with pk ${publicKey}); } }

The above function from the Crypto class does not return anything when the result is true.

Export Engines/KeyStores through `@token-io/tpp`

I'd like to implement a custom KeyStore / CryptoEngine like:

export class CryptoEngine extends KeyStoreCryptoEngine {
  constructor(memberId: string) {
    super(memberId, myCustomkeyStore);
  }
}

But KeyStoreCryptoEngine is not exported by @token-io/tpp neither is any other except for the filesystem one (inside of TokenClient). I know it is exported from @token-io/core but since it uses esmodules and flow, I can't use it from my nodejs without transpiling.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.