identity

package
v0.125.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: MPL-2.0, MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TwitterID      = "__twitter"
	PersonalSiteID = "__personal_site"
	GithubID       = "__github"
	YoutubeID      = "__youtube"
	DiscordID      = "__discord"
	TelegramID     = "__telegram"
)

static links which need to be decorated by the UI clients

Variables

This section is empty.

Functions

func Slices

func Slices(compressedPubkey []byte) (res [4][]byte, err error)

compressedPubKey = |1.5 bytes chars cutoff|20 bytes emoji hash|10 bytes color hash|1.5 bytes chars cutoff|

func ToBigBase

func ToBigBase(value *big.Int, base uint64) (res [](uint64))

func ToBigInt

func ToBigInt(t *testing.T, str string) *big.Int

func ToColorID added in v0.98.3

func ToColorID(pubkey string) (int64, error)

func ToCompressedKey

func ToCompressedKey(pubkey string) ([]byte, error)

Types

type SocialLink struct {
	Text string `json:"text"`
	URL  string `json:"url"`
}
type SocialLinks []SocialLink
func NewSocialLinks(links []*protobuf.SocialLink) *SocialLinks

func (SocialLinks) Equals added in v0.105.1

func (s SocialLinks) Equals(rhs SocialLinks) bool

func (*SocialLinks) Serialize added in v0.105.1

func (s *SocialLinks) Serialize() ([]byte, error)

func (*SocialLinks) ToProtobuf added in v0.105.1

func (s *SocialLinks) ToProtobuf() []*protobuf.SocialLink

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL