mirror of
https://github.com/vacp2p/research.git
synced 2025-02-24 12:18:06 +00:00
Merkleslash init
This commit is contained in:
parent
91ed40f98a
commit
49cbb2ee41
22
merkleslash/merkleslash.go
Normal file
22
merkleslash/merkleslash.go
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
// Rough API
|
||||||
|
|
||||||
|
// eg swarm feeds, etc - any trusted point
|
||||||
|
// getRoot(method, groupID)
|
||||||
|
|
||||||
|
// list or merkle root and payment
|
||||||
|
// to untrusted node
|
||||||
|
// sync(root, [have], node) payment?
|
||||||
|
|
||||||
|
//verify
|
||||||
|
//slash
|
||||||
|
//court
|
||||||
|
|
||||||
|
// define how untrusted nodes get in first place
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Printf("Hello Merkleslash\n")
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user