Code Monkey home page Code Monkey logo

web-ledger's People

Contributors

aljones15 avatar davidlehn avatar dlongley avatar mattcollier avatar msporny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

web-ledger's Issues

Publish web-ledger context as npm package

It would be really useful to be able to import and use the web-ledger context as an npm package. (Similar to how veres-one-context does it, for example.)

Given that this is a multi-language standard, not just for node, we can organize it by programming language. So, this issue is to:

  • add a js/ folder, and put an index.js in there
  • add a top level package.json and have main: point to /js/index.js

If there's demand for other programming languages, we can organize them similarly, by language.
So, we'd add a rb/ folder for Ruby (and a top level Gemfile), and so on.

Seeking some types and values

For BTCR audit trail, seeking (but not finding):

  • chain (what chain is this on? bitcoin, testnet, or alt satoshi chains like lightcoin, zcash)
  • blockHash (alternative to blockHeight)
  • transactionIndex (aka index to transaction in block)

etc.

See an example of needs at WebOfTrustInfo/btcr-hackathon-2019#9

`id` field in `CreateWebLedgerRecord.record` needs a special rule

The id field in CreateWebLedgerRecord.record needs a special rule that indicates the id property will not change from the core web ledger context and that it must be present. This rule makes it such that new contexts can be used without having to specify the web ledger context -- with only that caveat, i.e. it should improve ergonomics.

Should a genesis block have a previous block?

From the documents:

EXAMPLE 1: Example genesis block
{
  "@context": "https://w3id.org/web-ledger/v1",
  "id": BLOCK_ID,
  "type": "LedgerConfigurationBlock",
  "ledgerConfig": {
    "id": LEDGER_ID,
    "type": "LedgerConfiguration",
    "name": "example",
    "description": "This is an example ledger.",
    "storageMechanism": STORAGE_DATA_STRUCTURE,
    "consensusAlgorithm": CONSENSUS_ALGORITHM,
  "previousBlock": {
    "hash": "urn:sha256:0000000000000000000000000000000000000000000000000000000000000000"
  },
  "signature": SIGNATURE_VALUE
}

if a genesis block is the first block why does it have a previousBlock?

Add a Readme and Contributing guide file

As a contributor, It would be easier if I could access information about the repo and contributing guides in the repo itself. So, adding repository details, purpose, or usage in a Readme markdown File, and contributing guides in a Contributing markdown file would be helpful.

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.