@oceanprotocol/keeper-contracts
Version:
Integration of SEAs, DID and OceanToken in Solidity
64 lines (51 loc) • 1.48 kB
Markdown
# contract: SignCondition
Documentation:
```
Sign Condition
Ocean Protocol Team
* Implementation of the Sign Condition
* For more information, please refer the following link
https://github.com/oceanprotocol/OEPs/issues/121
TODO: update the OEP link
```
## Functions
### external initialize
Documentation:
```
initialize init the
contract with the following parameters
this function is called only once during the contract
initialization.
_owner contract's owner account address
_conditionStoreManagerAddress condition store manager address
```
Parameters:
* address _owner
* address _conditionStoreManagerAddress
### public hashValues
Documentation:
```
hashValues generates the hash of condition inputs
with the following parameters
_message the message to be signed
_publicKey the public key of the signing address
bytes32 hash of all these values
```
Parameters:
* bytes32 _message
* address _publicKey
### public fulfill
Documentation:
```
fulfill validate the signed message and fulfill the condition
_agreementId SEA agreement identifier
_message the message to be signed
_publicKey the public key of the signing address
_signature signature of the signed message using the public key
condition state
```
Parameters:
* bytes32 _agreementId
* bytes32 _message
* address _publicKey
* bytes _signature