Skip to content

Commit

Permalink
Add specification for Portal JSON-RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
KolbyML committed Oct 11, 2024
1 parent 845f0e6 commit 8e115cc
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions jsonrpc/specification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Portal JSON-RPC specification

## portal_*RoutingTableInfo

## portal_*AddEnr

## portal_*GetEnr

## portal_*DeleteEnr

## portal_*LookupEnr

## portal_*Ping

## portal_*FindNodes

## portal_*FindContent
- must validate content

## portal_*Offer
- must not validate content
- shouldn't store data on offering node

## portal_*RecursiveFindNodes

## portal_*GetContent
- must validate content
- must check local storage first before doing recursive find content
- if recursive find content is done must do poke mechanism
- if recursive find content is done and content meets storage criteria store content

## portal_*TraceGetContent
- must validate content
- must check local storage first before doing recursive find content
- if recursive find content is done must do poke mechanism
- if recursive find content is done and content meets storage criteria store content

## portal_*Store
- must not validate content

## portal_*LocalContent
- content stored locally is assumed already validated

## portal_*Gossip
- must not validate content
- shouldn't store data on gossiping node

0 comments on commit 8e115cc

Please sign in to comment.