Documentation ¶
Index ¶
- Constants
- func Slices(compressedPubkey []byte) (res [4][]byte, err error)
- func ToBigBase(value *big.Int, base uint64) (res [](uint64))
- func ToBigInt(t *testing.T, str string) *big.Int
- func ToColorID(pubkey string) (int64, error)
- func ToCompressedKey(pubkey string) ([]byte, error)
- type SocialLink
- type SocialLinks
- type SocialLinksInfo
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 ¶
compressedPubKey = |1.5 bytes chars cutoff|20 bytes emoji hash|10 bytes color hash|1.5 bytes chars cutoff|
func ToCompressedKey ¶
Types ¶
type SocialLink ¶ added in v0.105.1
func (*SocialLink) Equal ¶ added in v0.156.1
func (s *SocialLink) Equal(link *SocialLink) bool
func (*SocialLink) ToProtobuf ¶ added in v0.156.1
func (s *SocialLink) ToProtobuf() *protobuf.SocialLink
type SocialLinks ¶ added in v0.105.1
type SocialLinks []*SocialLink
func NewSocialLinks ¶ added in v0.105.1
func NewSocialLinks(links []*protobuf.SocialLink) SocialLinks
func (*SocialLinks) Contains ¶ added in v0.156.1
func (s *SocialLinks) Contains(link *SocialLink) bool
func (*SocialLinks) Equal ¶ added in v0.156.1
func (s *SocialLinks) Equal(links SocialLinks) bool
Equal means the same links at the same order
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
func (*SocialLinks) ToSyncProtobuf ¶ added in v0.156.1
func (s *SocialLinks) ToSyncProtobuf(clock uint64) *protobuf.SyncSocialLinks
type SocialLinksInfo ¶ added in v0.156.1
type SocialLinksInfo struct { Links []*SocialLink `json:"links"` Removed bool `json:"removed"` }
Click to show internal directories.
Click to hide internal directories.