Download OpenAPI specification:Download
Cloak provides a simple key management API for BN254 key pairs. It allows users to create a key pair where the private key will only be revealed after a certain time. The time is determined by the conclusion of an auction that the key is mapped to based on observations of blockchain events.
|
lot_id
required
|
integer
The lot ID to retrive the public key for |
|
x-chain-id
required
|
integer
The ID of a chain the auction is on |
|
x-auction-house
required
|
string
The address of the auction house contract the auction is on |
{
-
"x":
"string",
-
"y":
"string"
}
|
lot_id
required
|
integer
The lot ID to retrive the private key for |
|
x-chain-id
required
|
integer
The ID of a chain the auction is on |
|
x-auction-house
required
|
string
The address of the auction house contract the auction is on |
"string"
|
lot_id
required
|
integer
The lot ID to encrypt the bid for |
|
x-chain-id
required
|
integer
The ID of a chain the auction is on |
|
x-auction-house
required
|
string
The address of the auction house contract the auction is on |
The bid amount to encrypt
| amount |
string
The bid amount in, used to calculate an encryption salt |
| amount_out |
string
The bid amount out to encrypt |
| bidder |
string
The bidder's address |
{
-
"amount":
"string",
-
"amount_out":
"string",
-
"bidder":
"string"
}
{
-
"ciphertext":
"string",
-
"x":
"string",
-
"y":
"string"
}
|
lot_id
required
|
integer
The lot ID to retrive hints for |
|
num
required
|
integer
The number of hints to retrieve |
|
x-chain-id
required
|
integer
The ID of a chain the auction is on |
|
x-auction-house
required
|
string
The address of the auction house contract the auction is on |
[
-
"string"
]
|
lot_id
required
|
integer
The lot ID to retrive hints for |
|
num
required
|
integer
The number of hints to retrieve |
|
x-chain-id
required
|
integer
The ID of a chain the auction is on |
|
x-auction-house
required
|
string
The address of the auction house contract the auction is on |
[
-
"string"
]