https://github.com/libp2p/go-smart-record
ResNetLab Project: Smart Records
https://github.com/libp2p/go-smart-record
Last synced: 12 months ago
JSON representation
ResNetLab Project: Smart Records
- Host: GitHub
- URL: https://github.com/libp2p/go-smart-record
- Owner: libp2p
- License: mit
- Created: 2021-03-04T17:40:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T09:27:50.000Z (over 1 year ago)
- Last Synced: 2025-03-26T05:23:24.672Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 20.7 MB
- Stars: 7
- Watchers: 16
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-smart-record
[](https://protocol.ai)
[](https://libp2p.io)
[](http://webchat.freenode.net/?channels=%23yellow)
[](https://discuss.libp2p.io)
> Go implementation of smart records. Smart Records (SRs) provide
a *public blackboard for protocols*.
## Summary
We currently don't have a standardized, shared, public medium decoupled from the transport protocol for the interaction of different protocols.
With Smart Records (SRs) we generalize DHT's key/value put/get as a separate protocol that can be leveraged by any other protocol
(including DHT protocols) to store arbitrary data.
Smart Records leverage the [go-routing-language](https://github.com/libp2p/go-routing-language) for their data model.
SRs are a mixture between a CRDT and a smart contract. A record (for a key) is a replicated state machine holding generic data.
It supports reading, writing, merging and "smart services" (through smart tags included in the SR data model which adds additional
logic to records).
SR model works as follows:
- Each peer (identified by its public key) writes to a peer-specific documents (their own peer private space).
- Peers can overwrite their own documents.
- Every document node has a TTL specified (and eventually paid for) by the writing peer.
- Users of SR can get the full record and process the information stored in the different user-spaces.
## Contribute
Contributions welcome. Please check out [the issues](https://github.com/libp2p/go-libp2p-xor/issues).
Check out our [contributing document](https://github.com/libp2p/community/blob/master/CONTRIBUTE.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to libp2p are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
## License
[MIT](LICENSE) © Protocol Labs Inc.