signature to byte

This commit is contained in:
mr
2026-02-09 10:55:36 +01:00
parent bafeee0d05
commit b767afb301
2 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ type ResourceInterface interface {
SetAllowedInstances(request *tools.APIRequest) SetAllowedInstances(request *tools.APIRequest)
AddInstances(instance ResourceInstanceITF) AddInstances(instance ResourceInstanceITF)
RefineResourceByPartnership(peerID string) ResourceInterface RefineResourceByPartnership(peerID string) ResourceInterface
GetSignature() string GetSignature() []byte
} }
type ResourceInstanceITF interface { type ResourceInstanceITF interface {

View File

@@ -27,10 +27,10 @@ type AbstractResource struct {
Owners []utils.Owner `json:"owners,omitempty" bson:"owners,omitempty"` // Owners is the list of owners of the resource Owners []utils.Owner `json:"owners,omitempty" bson:"owners,omitempty"` // Owners is the list of owners of the resource
UsageRestrictions string `bson:"usage_restrictions,omitempty" json:"usage_restrictions,omitempty"` UsageRestrictions string `bson:"usage_restrictions,omitempty" json:"usage_restrictions,omitempty"`
AllowedBookingModes map[booking.BookingMode]*pricing.PricingVariation `bson:"allowed_booking_modes" json:"allowed_booking_modes"` AllowedBookingModes map[booking.BookingMode]*pricing.PricingVariation `bson:"allowed_booking_modes" json:"allowed_booking_modes"`
Signature string `bson:"signature" json:"signature"` Signature []byte `bson:"signature" json:"signature"`
} }
func (abs *AbstractResource) GetSignature() string { func (abs *AbstractResource) GetSignature() []byte {
return abs.Signature return abs.Signature
} }