Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( EthereumWalletAddressLength = 42 PeerIdLength = 46 )
Functions ¶
func WrapperAlgorithmToProto ¶
func WrapperAlgorithmToProto( algorithm WrapperAlgorithm, ) messageContentsProto.WelcomeWrapperAlgorithm
Convert a WrapperAlgorithm to its proto representation
func WrapperAlgorithmToWelcomePointerWrapperAlgorithm ¶ added in v1.3.0
func WrapperAlgorithmToWelcomePointerWrapperAlgorithm( algorithm WrapperAlgorithm, ) messageContentsProto.WelcomePointerWrapperAlgorithm
WrapperAlgorithmToWelcomePointerWrapperAlgorithm converts a WrapperAlgorithm to its proto representation
Types ¶
type WalletAddr ¶
type WalletAddr string
func (WalletAddr) IsValid ¶
func (walletAddr WalletAddr) IsValid() bool
func (WalletAddr) String ¶
func (walletAddr WalletAddr) String() string
type WrapperAlgorithm ¶
type WrapperAlgorithm int16
const ( AlgorithmCurve25519 WrapperAlgorithm = iota AlgorithmXwingMlkem768Draft6 AlgorithmSymmetricKey )
DO NOT MODIFY THE ORDER OF THESE VALUES The values get saved in the DB as int16s, so changing the order will change the meaning of existing rows
func WelcomePointerWrapperAlgorithmFromProto ¶ added in v1.3.0
func WelcomePointerWrapperAlgorithmFromProto( proto messageContentsProto.WelcomePointerWrapperAlgorithm, ) (WrapperAlgorithm, error)
WelcomePointerWrapperAlgorithmFromProto converts the proto enum to a WrapperAlgorithm. Returns an error if the proto is not set (UNSPECIFIED) or is unknown. The returned algorithm value is undefined when err != nil and must be ignored.
func WrapperAlgorithmFromProto ¶
func WrapperAlgorithmFromProto( proto messageContentsProto.WelcomeWrapperAlgorithm, ) WrapperAlgorithm
WelcomeWrapperAlgorithm converts the enum from the proto to a WrapperAlgorithm enum Defaults to Curve25519 if the proto is not set (older clients, which only support Curve25519)