Skip to content
Snippets Groups Projects
Unverified Commit bfdb8af5 authored by Levente Pap's avatar Levente Pap
Browse files

WebAPI handles strong/weak parents

parent 987c6802
Branches
Tags v0.18.x
No related merge requests found
......@@ -47,9 +47,8 @@ func findByIDHandler(c echo.Context) error {
SolidificationTime: msgMetadata.SolidificationTime().Unix(),
},
ID: msg.ID().String(),
//TODO: adjust
//Parent1ID: msg.Parent1ID().String(),
//Parent2ID: msg.Parent2ID().String(),
StrongParents: msg.StrongParents().ToStrings(),
WeakParents: msg.WeakParents().ToStrings(),
IssuerPublicKey: msg.IssuerPublicKey().String(),
IssuingTime: msg.IssuingTime().Unix(),
SequenceNumber: msg.SequenceNumber(),
......@@ -80,8 +79,8 @@ type FindByIDRequest struct {
type Message struct {
Metadata `json:"metadata,omitempty"`
ID string `json:"ID,omitempty"`
Parent1ID string `json:"parent1Id,omitempty"`
Parent2ID string `json:"parent2Id,omitempty"`
StrongParents []string `json:"strongParents,omitempty"`
WeakParents []string `json:"weakParents,omitempty"`
IssuerPublicKey string `json:"issuerPublicKey,omitempty"`
IssuingTime int64 `json:"issuingTime,omitempty"`
SequenceNumber uint64 `json:"sequenceNumber,omitempty"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment