Coder Social home page Coder Social logo

hugomrdias / iso-repo Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 3.0 1.54 MB

Set of tools for passkeys, filecoin, dids, signatures, base encoding

Home Page: https://hugomrdias.github.io/iso-repo/

License: MIT License

JavaScript 90.98% TypeScript 9.02%
did filecoin signatures passkeys webauthn encoding rfc4648 webcrypto

iso-repo's Introduction

iso-repo

Monorepo for all the iso packages

Packages

  • iso-base - Isomorphic utilities for webcrypto, rfc4648 encoding, leb128 encoding, utf8 encoding and buffer sources.
  • iso-did - Isomorphic did core, did key and did web tooling.
  • iso-kv - iso-kv is a simple key-value storage with support for multiple backend adapters (web storage, indexeddb, memory, sql, json file, etc)
  • iso-passkeys - Isomorphic passkeys tooling
  • iso-signatures - Isomorphic signatures tooling
  • iso-web - Isomorphic web apis utilities for fetch, signals, crypto and doh.
  • iso-websocket - iso-websocket implements the Websocket interface and is compatible with the browser, node.js and any other engine that implements basic Web APIs.
  • iso-filecoin - Filecoin tooling was moved to its own repository

Contributing

Read contributing guidelines here.

Open in GitHub Codespaces

License

MIT © Hugo Dias

iso-repo's People

Contributors

agostbiro avatar dependabot[bot] avatar hugomrdias avatar icidasset avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

iso-repo's Issues

Improve and sync iso-kv types

  • sync iso-kv and ucan expiration types
  • sync bearer with iso-kv types
  • DoH cache TTL may be in seconds but kv is seconds

[bug]: `iso-signatures`: Inconsistent types between `EdDSASigner` and `RSASigner`

When I want to use @fission-codes/ucan I want to be able to create a UCAN like this:

const issuer = await RSASigner.generate()
const audience = await RSASigner.generate()
const ucan = await UCAN.create({
  issuer,
  audience,
})

But this doesn't work.

When I downgrade iso-signatures to version 0.2.0 it works.
This is because iso-signatures in version 0.2.0 used to have a property RSASigner.did: DIDKey, while in the latest version, the RSASigner itself inherits most of the properties of DIDKey.
However, EdDSASigner still has a property EdDSASigner.did: DIDKey.

I would prefer EdDSASigner and RSASigner to have the same interface. This way, @fission-codes/ucan can simply be fixed to use the new interface, without users of that library having to distinguish between calling UCAN.create with RSASigner or EdDSASigner.

change doh cache to cache function

doh uses KV directly to cache, this dependency is not necessary, it should instead use a cache function like iso-signatures verifiers or did-resolver.

[feature]: iso-web update to msw 2.0

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[feature]: Expose `DoH` utilities

Is your feature request related to a problem? Please describe.
I wanted to use iso-web/doh to do DoH requests to the fission server, but had to realize the code is there, just not exposed.

Describe the solution you'd like
Expose the doh module in iso-web/src/index.js

Describe alternatives you've considered
I tried depending on it manually with something like import 'iso-web/src/doh.js' or the like, but that doesn't work due to the export maps.

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.