diff options
author | Özgür Kesim <oec@codeblau.de> | 2024-04-05 18:06:35 +0200 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2024-04-05 18:06:35 +0200 |
commit | 5733f293044bfe0d3210e7c4688172d53d54a7e0 (patch) | |
tree | b8f3da57d83410a9b3f7efe0b856729ca48d804b /main.go | |
parent | e735cff1d63145b89c4c48b9d73f037d3a4305f4 (diff) |
client: started work on API for client, wip
- auction defines description of an auction
- client creates auction object, given a description
- commitment/* merged into client
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/main.go b/main.go deleted file mode 100644 index 4d497a8..0000000 --- a/main.go +++ /dev/null @@ -1,35 +0,0 @@ -package seal - -import ( - "crypto" - "time" -) - -// Auction describes the asset of an auction and other -// relevant meta-data -type Auction struct { - // Start date - Start time.Time - // End date - End time.Time - // Timeout per round by which all responses must have arrived - RoundTimeout time.Duration - - // Sha512 Hash of the Asset - AssetHash string - - // Public key of the Seller - SellerPublicKey crypto.PublicKey -} - -// The SignedAuction contains an Auction and the signature, -// signed by the seller's public key off the SHA512 hash of -// the normalized JSON-object. TODO(oec): normalized? -type SignedAuction struct { - Auction - SellerSignature string -} - -// The published commiment of a participant -type Commitment struct { -} |