2025-01-20 11:57:27 +01:00

20 lines
327 B
Go

package pairing
import (
ktypes "github.com/status-im/keycard-go/types"
"github.com/status-im/status-keycard-go/pkg/utils"
)
type Info struct {
Key utils.HexString `json:"key"`
Index int `json:"index"`
}
func ToPairInfo(r *ktypes.PairingInfo) *Info {
return &Info{
Key: r.Key,
Index: r.Index,
}
}