Giter VIP home page Giter VIP logo

cashu's Introduction

cashu

cashu

Documentation


GitHub license npm npm Github Stars

Cashu Token Decoder

Demo

Description

This repository houses a web application that facilitates the decoding and encoding of Cashu tokens. Users can conveniently paste an encoded token into the designated text area and receive the corresponding decoded JSON representation in another text area.

Features

  • Decodes Cashu tokens into JSON format.
  • Encodes JSON back into Cashu tokens (if valid).
  • Handles potential errors during decoding and encoding processes.
  • Pre-fills the encoded input field with a token from the URL query string (optional).

License

  • MIT

cashu's People

Contributors

melvincarvalho avatar

Stargazers

Felix avatar  avatar 0xg4tt0 avatar  avatar  avatar  avatar  avatar Lewin Kelly avatar Nate avatar Steffen avatar  avatar

Watchers

 avatar

cashu's Issues

[Feature request] Toggle to print `Proof.Y`

It would be great to have a toggle that also prints the Proof.Y in the output JSON for a decoded token.

The Proof.Y can be calculated by computing hash_to_curve(secret) (see NUT-00). The hash_to_curve requires sha256 and secp256k1 (to check if the point is on the curve). An implementation in cashu-ts can be found here.

add fork me on github ribbon

looks a bit like this

    <!-- GitHub Ribbon -->
    <a href="https://github.com/nostrapps/cashu/" class="github-fork">
      <img
        decoding="async"
        loading="lazy"
        width="149"
        height="149"
        src="https://github.blog/wp-content/uploads/2008/12/forkme_right_white_ffffff.png?resize=149%2C149"
        class="attachment-full size-full"
        alt="Fork me on GitHub"
        data-recalc-dims="1"
      />
    </a>

feedback from calle

If you don't mind here is some unsolicited inspiration:

  • copy button for both fields
  • below second field there could be a "real" decoder with some features: showing total amount, mint, check DLEQ proof validity (locally)
  • button check token spent state with the mint (API)?

https://t.me/CashuBTC/21986

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.