Skip to content

Instantly share code, notes, and snippets.

@chiro-hiro
Last active February 14, 2023 06:49
Show Gist options
  • Select an option

  • Save chiro-hiro/3edfb1dced2e44cb7e4960d0773259b2 to your computer and use it in GitHub Desktop.

Select an option

Save chiro-hiro/3edfb1dced2e44cb7e4960d0773259b2 to your computer and use it in GitHub Desktop.

Revisions

  1. chiro-hiro revised this gist Feb 14, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions orandv1.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    Orand JSON PRC was published at:
    [http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337](http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337)
    [https://orand-test-service.orochi.network/](https://orand-test-service.orochi.network/)

    Created new Orand's private epoch with CURL:

    ```text
    curl -X POST --data '{"method":"orand_newPrivateEpoch","params":["56", "0x68bE199e497FAe7ed11339BE388BF4a403CD1698"]}' http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337
    curl -X POST --data '{"method":"orand_newPrivateEpoch","params":["56", "0x68bE199e497FAe7ed11339BE388BF4a403CD1698"]}' https://orand-test-service.orochi.network/
    ```

    Result for a single epoch:
    @@ -29,5 +29,5 @@ Result for a single epoch:
    To read all epochs, try:

    ```text
    curl -X POST --data '{"method":"orand_getPrivateEpoch","params":["56", "0x68bE199e497FAe7ed11339BE388BF4a403CD1698", "0"]}' http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337
    curl -X POST --data '{"method":"orand_getPrivateEpoch","params":["56", "0x68bE199e497FAe7ed11339BE388BF4a403CD1698", "0"]}' https://orand-test-service.orochi.network/
    ```
  2. chiro-hiro created this gist Jan 3, 2023.
    33 changes: 33 additions & 0 deletions orandv1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    Orand JSON PRC was published at:
    [http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337](http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337)

    Created new Orand's private epoch with CURL:

    ```text
    curl -X POST --data '{"method":"orand_newPrivateEpoch","params":["56", "0x68bE199e497FAe7ed11339BE388BF4a403CD1698"]}' http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337
    ```

    Result for a single epoch:

    ```json
    {
    "epoch": 0,
    "alpha": "5a1e10db55159e7297c413dd7a069b04183ae0db3608ee418d2efea6272f63f4",
    "gamma": "7187b2e484550b51e00006952cfa6f776af320a94614f34330e2948d69da22b2af86b8e530540ca155165871c1f5b7075bf7b34cf16fb2bd8003a4f12c1b28e3",
    "c": "1f25aa0d92685cb15eb8d7d350df34d1205319284c49351a31932b7b9b766c48",
    "s": "05fe3ae4144c01d8668f7f65c0e898e8abc5dfc05f50fff9f32a5ab962477b09",
    "y": "8daf63e5b5c93223f1633df2cc7c67b5b022ab25ee82b624360c296d04467822",
    "witness_address": "5b44cd61e991f4c893f55a60727320513afb3b49",
    "witness_gamma": "331b80ed36129b75248526c7fe4c552b00e03630876ab3787adfd63089463b42e79c46cc017eae292856d47dbd7cb638e81e83389c07ad7c2fd4dfab24f290f7",
    "witness_hash": "fe8279cac6cf1d6edc246fb2cad4baec75a8e3863efd93b94e98090786ef8a3d184a682ec033ee025ca64b34243584ed8e33384428dec80dffc105eb1f54cbd4",
    "inverse_z": "a1e9eaab2cd16204454f07f1a4c6a14bb298accd2b1cbf28a7f57883750f7f02",
    "signature_proof": "c2d1b1b0918a63edac4e759656017f84dcea8a0b11008498aae06a523c12920048ad98126c2b07ce0614c88e03036d3034c3e4a4972552b5eab0368793f275e50019457468657265756d205369676e6564204d6573736167653a0a363400000000000000000000000068be199e497fae7ed11339be388bf4a403cd16988daf63e5b5c93223f1633df2cc7c67b5b022ab25ee82b624360c296d04467822",
    "created_date": "2023-01-03 10:25:43"
    }
    ```

    To read all epochs, try:

    ```text
    curl -X POST --data '{"method":"orand_getPrivateEpoch","params":["56", "0x68bE199e497FAe7ed11339BE388BF4a403CD1698", "0"]}' http://ec2-35-78-210-187.ap-northeast-1.compute.amazonaws.com:1337
    ```