Skip to content

Commit

Permalink
Remove version and location. They imply to many updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Mar 13, 2024
1 parent b8fe1c3 commit 90773c2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
8 changes: 0 additions & 8 deletions did/doc/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"slices"
"time"

"github.com/bahner/go-ma/did"
cbor "github.com/fxamacker/cbor/v2"
Expand All @@ -14,13 +13,11 @@ import (

type Document struct {
Context []string `cbor:"@context,toarray" json:"@context"`
Version int64 `cbor:"version,keyasint64" json:"version"`
ID string `cbor:"id" json:"id"`
Controller []string `cbor:"controller,toarray" json:"controller"`
VerificationMethod []VerificationMethod `cbor:"verificationMethod,toarray" json:"verificationMethod"`
AssertionMethod string `cbor:"assertionMethod" json:"assertionMethod"`
KeyAgreement string `cbor:"keyAgreement" json:"keyAgreement"`
LastKnownLocation string `cbor:"lastKnownLocation,omitempty" json:"lastKnownLocation,omitempty"`
Proof Proof `cbor:"proof" json:"proof"`
}

Expand All @@ -38,7 +35,6 @@ func New(identifier string, controller string) (*Document, error) {

doc := Document{
Context: DID_CONTEXT,
Version: time.Now().Unix(),
ID: identifier,
Controller: ctrller,
}
Expand Down Expand Up @@ -92,10 +88,6 @@ func (d *Document) Equal(other *Document) bool {
return false
}

if d.Version != other.Version {
return false
}

if d.KeyAgreement != other.KeyAgreement {
return false
}
Expand Down
23 changes: 0 additions & 23 deletions did/doc/location.go

This file was deleted.

11 changes: 0 additions & 11 deletions did/doc/version.go

This file was deleted.

0 comments on commit 90773c2

Please sign in to comment.