Created
September 7, 2021 16:39
-
-
Save 1devNdogs/beda3ec2003cc538fc74bbeab957e324 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rpc":{ | |
"proposeProofOfSpace":{ | |
"description":"rpc method to propose a proof of space", | |
"params":[ | |
{ | |
"name":"proposed_proof_of_space_result", | |
"type":"ProposedProofOfSpaceResult", | |
"isOptional":false | |
} | |
], | |
"type":"Null" | |
}, | |
"subscribeSlotInfo":{ | |
"description":"Slot info subscription", | |
"params":[ | |
], | |
"pubsub":[ | |
"slot_info", | |
"subscribeSlotInfo", | |
"unsubscribeSlotInfo" | |
], | |
"type":"RpcNewSlotInfo" | |
} | |
}, | |
"types":{ | |
"RpcSolution":{ | |
"public_key":"[u8; 32]", | |
"nonce":"u64", | |
"encoding":"Vec<u8>", | |
"signature":"Vec<u8>", | |
"tag":"[u8; 8]" | |
}, | |
"ProposedProofOfSpaceResult":{ | |
"slot_number":"Slot", | |
"solution":"Option<RpcSolution>", | |
"secret_key":"Vec<u8>" | |
}, | |
"RpcNewSlotInfo":{ | |
"slot_number":"Slot", | |
"challenge":"[u8; 8]", | |
"salt":"[u8; 8]", | |
"next_salt":"Option<[u8; 8]>", | |
"solution_range":"u64" | |
}, | |
"PoCRandomness":"[u8; 32]", | |
"FarmerSignature":"Signature", | |
"FarmerId":"AccountId", | |
"PoCBlockWeight":"u32", | |
"ConsensusLog":{ | |
"_enum":{ | |
"Phantom":"Null", | |
"NextEpochData":"PoCNextEpochDescriptor", | |
"NextConfigData":"PoCNextConfigDescriptor", | |
"SolutionRangeData":"SolutionRangeDescriptor", | |
"SaltData":"SaltDescriptor", | |
"NextSolutionRangeData":"NextSolutionRangeDescriptor", | |
"NextSaltData":"NextSaltDescriptor" | |
} | |
}, | |
"PoCNextEpochDescriptor":{ | |
"randomness":"PoCRandomness" | |
}, | |
"PoCNextConfigDescriptor":{ | |
"_enum":{ | |
"V0":"Null", | |
"V1":"PoCNextConfigDescriptorV1" | |
} | |
}, | |
"PoCNextConfigDescriptorV1":{ | |
"c":"(u64, u64)" | |
}, | |
"SolutionRangeDescriptor":{ | |
"solution_range":"u64" | |
}, | |
"SaltDescriptor":{ | |
"salt":"u64" | |
}, | |
"NextSolutionRangeDescriptor":{ | |
"solution_range":"u64" | |
}, | |
"NextSaltDescriptor":{ | |
"salt":"u64" | |
}, | |
"PoCEpochConfiguration":{ | |
"c":"(u64, u64)" | |
}, | |
"Solution":{ | |
"public_key":"FarmerId", | |
"nonce":"u64", | |
"encoding":"Vec<u8>", | |
"signature":"Vec<u8>", | |
"tag":"[u8; 8]" | |
}, | |
"RawPoCPreDigest":{ | |
"slot":"Slot", | |
"solution":"Solution" | |
}, | |
"PoCOffenceDetails":{ | |
"offender":"Offender" | |
}, | |
"EquivocationProof":{ | |
"offender":"FarmerId", | |
"slot":"Slot", | |
"firstHeader":"Header", | |
"secondHeader":"Header" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment