RSS3-Network / Protocol

The RSS3 Protocol is used to structure Open Information for interoperability.
Creative Commons Zero v1.0 Universal
306 stars 20 forks source link

Demo needed #12

Closed nzhl closed 3 years ago

nzhl commented 3 years ago

Still quite confused about the final implement of RSS3, a runable demo should be helpful~

nzhl commented 3 years ago

Still quite confused about the final implement of RSS3, a runable demo should be helpful~

If this is not possible at current stage, some user stories in real life can also help

kallydev commented 3 years ago

This is a simple example of fetching content from the RSS3 endpoint network.

import hexbytes
import requests

from eth_keys import keys

if __name__ == "__main__":
    endpoint = "https://rss3-hub-playground-6raed.ondigitalocean.app"
    pk = "0x47e18d6c386898b424025cd9db446f779ef24ad33a26c499c87bb3d9372540ba"
    pk = keys.PrivateKey(hexbytes.HexBytes(pk))
    address = pk.public_key.to_checksum_address()
    print(address)
    r = requests.get(f"{endpoint}/{address}")
    print(r.json())
nzhl commented 3 years ago

This is a simple example of fetching content from the RSS3 endpoint network.

import hexbytes
import requests

from eth_keys import keys

if __name__ == "__main__":
    endpoint = "https://rss3-hub-playground-6raed.ondigitalocean.app"
    pk = "0x47e18d6c386898b424025cd9db446f779ef24ad33a26c499c87bb3d9372540ba"
    pk = keys.PrivateKey(hexbytes.HexBytes(pk))
    address = pk.public_key.to_checksum_address()
    print(address)
    r = requests.get(f"{endpoint}/{address}")
    print(r.json())

pretty cool, seems ppl using public_key as their id to publish content, and private one to denote the ownership ? Any node api provided?

DIYgod commented 3 years ago

Yeah, you can try it through RSS3-Hub RSS3-SDK-for-JavaScript RSS3-Python-SDK and some upcoming libraries