mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-02-12 06:16:48 +00:00
20 lines
327 B
Go
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,
|
||
|
}
|
||
|
}
|