Skip to content

This is a simple Tetcore runtime module to store online distributed proof of existence for any file.

Notifications You must be signed in to change notification settings

tetcore/tetcore-proof-of-existence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetcore Proof of Existence Module

This is a simple Tetcore runtime module to store online distributed proof of existence for any file.

Purpose

This module enables users submit a proof of existence for a file. This proof of existence may also be used as a soft measure of ownership.

Files are not directly uploaded to the blockchain. Instead, a file digest is generated, and the resulting digest is stored on chain with the time of upload and the user who made the claim.

Anyone who has the source file can also generate the same digest and check the proof of existence on-chain.

Dependencies

Traits

This module depends on an implementation of the Currency trait. This can be done by the SRML Balances module.

Modules

This module depends on the SRML Timestamp module.

Installation

Runtime Cargo.toml

To add this module to your runtime, simply include the following to your runtime's Cargo.toml file:

[dependencies.poe]
default_features = false
package = 'proof-of-existence'
git = 'https://github.com/substrate-developer-hub/substrate-proof-of-existence.git'

and update your runtime's std feature to include this module:

std = [
    ...
    'poe/std',
]

Runtime lib.rs

You should implement it's trait like so:

impl poe::Trait for Runtime {
	type Currency = Balances;
	type Event = Event;
}

and include it in your construct_runtime! macro:

POE: poe::{Module, Call, Storage, Event<T>},

Genesis Configuration

This template module does not have any genesis configuration.

Reference Docs

You can view the reference docs for this module by running:

cargo doc --open

About

This is a simple Tetcore runtime module to store online distributed proof of existence for any file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published