aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..4d497a8
--- /dev/null
+++ b/main.go
@@ -0,0 +1,35 @@
+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 {
+}