RPC Snapshot API Questions


#1

Does anyone understand what is being displayed here:

$ ./tezos-client rpc get /chains/main/blocks/head/context/raw/json/rolls/owner/snapshot/4/0/513
"p2pk66EmFoQS6b2mYLvCrwjXs7XT1A2znX26HcT9YMiGsyCHyDvsLaF"

/owner/snapshot/ returns an array of snapshots that can be polled. The current snapshot on alphanet is 4.

/owner/snapshot/4/ returns an array with just 1 number, 0. Don’t know what that 0 represents.

/owner/snapshot/4/0/ returns a large array with many numbers. I think this represents roll numbers but don’t know “why” it does.

/owner/snapshot/4/0/513 picked a random roll and it returns the result noted above.

/owner/snapshot/4/0/2205
"edpktxUcfryLBe5XMDKf2aDq4JfeLNJnHwUsUSv4Wo4aUbyW4aLe7r"

That roll number returned what looks like a public key. But what does that get me? What does that public key represent?


#2

not sure either

Proper return value for crypto_sign_open: 0 on success and -1 on failure

this is the tezos snapshot source code, but no documentation