GithubHelp home page GithubHelp logo

xumm.net.sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xumm.net.sdk's Issues

Support user token verification

XUMM SDK 1.1.2 adds support for the new user token verification endpoint:

This change features two methods on the parent SDK object, verifyUserTokens (to verify an array of tokens) and verifyUserToken (to verify a single user token).

Sample code in TypeScript:

    console.log(await Sdk.verifyUserTokens([
      '691d5ae8-968b-44c8-8835-f25da1214f35',
      'b12b59a8-83c8-4bc0-8acb-1d1d743871f1',
      '51313be2-5887-4ae8-9fda-765775a59e51',
      'testing an invalid record'
    ]))

» Returns an array with User Token Validity records: https://github.com/XRPL-Labs/XUMM-SDK/blob/33c43311226d9f42aabac1b5cc09ac2e04cc421c/deno/types/Meta/UserTokens.ts#L1

Or single User Token calls:

    console.log('a', await Sdk.verifyUserToken('691d5ae8-968b-44c8-8835-f25da1214f35'))
    console.log('b', await Sdk.verifyUserToken('691d5ae8-968b-44c8-8835-f25da1214f36'))
    console.log('c', await Sdk.verifyUserToken('testing an invalid record'))

» Each call returns either a single User Token Validity record, or null.

Types change: Payload(s) [POST/GET]: `signers` (null | string[])

TL;DR:

Payloads have a new meta property: signers. The field can be null or an array containing between one and an arbitrary amount (currently hard capped by our backend at four, client doesn't have to enforce) XRPL account addresses.

When one or more account addresses are entered, XUMM forces signing with one of those accounts.

Impact:

  • Payload GET types (meta.signers) (null or string[])
  • Paylost POST types (options.signers) (omit, null or string[])

Commit to XUMM-SDK:

XRPL-Labs/XUMM-SDK@8b5c484

Based on discussion:

XRPL-Labs/Xaman-Issue-Tracker#384 (comment)

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.