Generate Provable Outcomes
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | |
services |
Object |
Returns:
provable api
- Type
- Object
Methods
(async, inner) create(id, config)
create a provable chain
Parameters:
Name | Type | Default | Description |
---|---|---|---|
id |
String | ||
config |
Object |
{}
|
(async, inner) find(id)
Find provable
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
(async, inner) get(id)
get provable state
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
(async, inner) getOrCreate(id, config)
get or create a provable chain
Parameters:
Name | Type | Description |
---|---|---|
id |
String | |
config |
Object |
(async, inner) getOrCreateServerSeed(id, config)
get or create a serverseed
Parameters:
Name | Type | Default | Description |
---|---|---|---|
id |
String | ||
config |
Object |
{}
|
(async, inner) incrementServerSeed(id, config)
increment severSeed nonce
Parameters:
Name | Type | Default | Description |
---|---|---|---|
id |
String | ||
config |
Object |
{}
|
(async, inner) peekNext(id)
See next hash
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
(async, inner) rotate(id, clientSeed)
increment serverSeed nonce, reveal previous seed
Parameters:
Name | Type | Description |
---|---|---|
id |
String | |
clientSeed |
String |
(inner) strip(state)
strip sensative properties from state
Parameters:
Name | Type | Description |
---|---|---|
state |
Object |
(async, inner) unhash(hash)
unhash serverSeed
Parameters:
Name | Type | Description |
---|---|---|
hash |
String |