refactor: use RawPublicKey instead of PublicKey in macaroon issuer

This commit is contained in:
Prad Nukala
2024-10-18 14:09:16 -04:00
parent 6da6f2b97b
commit a0a5f0c7e0
5 changed files with 19 additions and 17 deletions
+2 -4
View File
@@ -5,7 +5,6 @@ import (
"github.com/onsonr/crypto/mpc"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
didv1 "github.com/onsonr/sonr/api/did/v1"
)
@@ -16,8 +15,8 @@ type ControllerI interface {
SonrAddress() string
EthAddress() string
BtcAddress() string
// RawPublicKey() []byte
StdPublicKey() cryptotypes.PubKey
RawPublicKey() []byte
// StdPublicKey() cryptotypes.PubKey
GetTableEntry() (*didv1.Controller, error)
ExportUserKs() (string, error)
}
@@ -123,7 +122,6 @@ func (c *controller) RawPublicKey() []byte {
return c.publicKey
}
//
// func (c *controller) StdPublicKey() cryptotypes.PubKey {
// return c.stdPubKey
// }