decentralized-identity / sidetree

Sidetree Specification and Reference Implementation
https://identity.foundation/sidetree/spec
Apache License 2.0
437 stars 112 forks source link

Sidetree Spec Defines Version Endpoint #916

Open OR13 opened 3 years ago

OR13 commented 3 years ago

For example:

curl -X GET "https://staging.element.transmute.industries/element/versions" -H  "accept: application/json"
[
    {
      "name": "core",
      "version": "0.1.0"
    },
    {
      "name": "ethereum",
      "version": "0.1.0"
    },
    {
      "name": "ipfs-with-cache",
      "version": "0.1.0"
    }
  ]
OR13 commented 3 years ago

IMO it would be better for us to return what is defined here: https://github.com/decentralized-identity/sidetree/issues/886

{
  "genesisTime": 0,
  "multihashAlgorithm": 18,
  "hashAlgorithm": 5,
  "maxOperationCount": 10,
  "maxOperationSize": 200000,
  "compressionAlgorithm": "GZIP",
  "maxAnchorFileSize": 1000000,
  "maxMapFileSize": 1000000,
  "maxChunkFileSize": 1000000,
  "patches": [
    "replace",
    "add-public-keys",
    "remove-public-keys",
    "add-services",
    "remove-services",
    "ietf-json-patch"
  ],
  "signatureAlgorithms": [
    "EdDSA",
    "ES256",
    "ES256K"
  ],
  "keyAlgorithms": [
    "Ed25519",
    "P-256",
    "secp256k1"
  ]
}
troyronda commented 3 years ago

API spec update.