Skip to content

Protocol allows to create escrow deposits in different cryptocurrencies and can be used in various applications. It is designed to minimize fees and provide easy experience for all participants.

Notifications You must be signed in to change notification settings

DiademNetwork/diadem-escrow-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diadem Protocol

Protocol allows to create escrow deposits in different cryptocurrencies and can be used in various applications.

It is designed to minimize fees and provide easy experience for all participants.

solc version 0.5.0+commit.1d4f565a.Emscripten.clang

function getMessageHash

constant pure

Type Name
address creator
address owner
string item

function getMessage

constant view

Type Name
bytes32 messageHash

function saveMessage

nonpayable

Type Name
address owner
string item

solc version 0.5.0+commit.1d4f565a.Emscripten.clang

event RevealedSignature
Type Name
bytes signature
bytes32 messageHash
address witness

function getSignature

constant view

Type Name
address witness
bytes32 messageHash

function isValidSignature

constant pure

Type Name
bytes signature
bytes32 messageHash
address witness

function saveSignature

nonpayable

Type Name
bytes signature
bytes32 messageHash
address witness

solc version 0.5.0+commit.1d4f565a.Emscripten.clang

event RevealedSignature
Type Name
bytes signature
bytes32 messageHash
string witness

function bytesToBase58

constant pure

Type Name
bytes source

function getEthereumAddress

constant pure

Type Name
bytes publicKey

function getBitcoinAddress

constant pure

Type Name
bytes publicKey

function isValidSignature

constant pure

Type Name
bytes signature
bytes32 messageHash
bytes publicKey
bytes publicKeyCompressed
string witness

function getSignature

constant view

Type Name
string witness
bytes32 messageHash

function saveSignature

nonpayable

Type Name
bytes signature
bytes32 messageHash
bytes publicKey
bytes publicKeyCompressed
string witness

solc version 0.5.0+commit.1d4f565a.Emscripten.clang

constructor

nonpayable

Type Name
address messagesContract
address ethereumContract
address bitcoinContract

event Create
Type Name
bytes32 messageHash
bytes32 previousMessageHash

event UpdateTitle
Type Name
string link
string newTitle

event Confirm
Type Name
address owner
string link
address witness

function getHash

constant view

Type Name
address owner
string link

function getAchievementsChain

constant view

Type Name
address owner

function getAchievementByHash

constant view

Type Name
bytes32 messageHash

function getAchievement

constant view

Type Name
address owner
string link

function updateTitle

nonpayable

Type Name
string link
string newTitle

function create

nonpayable

Type Name
string link
string title

function confirm

nonpayable

Type Name
address owner
string link
address witness
bytes signature

solc version 0.5.0+commit.1d4f565a.Emscripten.clang

event NewDeposit
Type Name
bytes32 depositHash

event WithdrawnDeposit
Type Name
address from
address beneficiary
uint256 amount
bytes32 messageHash

event RefundedDeposit
Type Name
address recipient
uint256 amount
bytes32 messageHash

function getDepositHash

constant pure

Type Name
address from
bytes32 messageHash
address beneficiary
address witness
uint256 expirationTime

function getDeposits

constant view

Type Name
bytes32 messageHash
address witness

function getDeposit

constant view

Type Name
bytes32 depositHash

function deposit

payable payable

Type Name
bytes32 messageHash
address beneficiary
address witness
uint256 expirationTime
uint256 witnessFee
uint256 relayerFee

function release

nonpayable

Type Name
bytes32 depositHash
bytes signature

function refund

nonpayable

Type Name
bytes32 depositHash

function addWitnessFee

payable payable

Type Name
bytes32 depositHash

function addRelayerFee

payable payable

Type Name
bytes32 depositHash


About

Protocol allows to create escrow deposits in different cryptocurrencies and can be used in various applications. It is designed to minimize fees and provide easy experience for all participants.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published