k0i / cipher_impl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What's this ?

This is a prototype implementation of token payment.

  • Frontend: Typescrypt and WebAssembly(rust)
  • Backend: Golang

More Precisely...

What's this?

This is a prototype implementation of token payment.

  • Frontend: Typescrypt and WebAssembly(rust)
  • Backend: Golang

More Precisely...

We determined to use a stream cipher so-called XChacha20-Poly1305.

However, we couldn't find a decent implementation of the cipher by Javascript.

Thus We decided to implement encrypt and decrypt method by using rust - wasm.

This is a prototype implementation and we still do not send back any token to the client browser at present. We are planning to cooperate with our other token calculation microservice, thus this repository already satisfied our aim to try out implementing payment-flow despite incompleteness.

Payment - Google Chrome 05 03 2022 23_43_05

launch server

yarn
yarn dev
pushd back
make run&
popd

About


Languages

Language:Go 40.6%Language:Rust 27.8%Language:TypeScript 22.6%Language:HTML 7.2%Language:JavaScript 1.6%Language:Makefile 0.1%