lbry

package
v0.0.0-...-3b4b688 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnhelixifyAndReverse

func UnhelixifyAndReverse(claimID string) []byte

UnhelixifyAndReverse takes a claimID and returns its bytes

Types

type Channel

type Channel struct {
	Name              string `json:"name"`
	ChannelID         string `json:"channel_id"`
	HoldingAddress    string `json:"holding_address"`
	HoldingPublicKey  string `json:"holding_public_key"`
	SigningPrivateKey string `json:"signing_private_key"`
}

Channel structure representing an exported LBRY channel

func ImportChannel

func ImportChannel(serializedChannel string) *Channel

ImportChannel creates a Channel representation from the serialization

func (*Channel) Claim

func (l *Channel) Claim() (*jsonrpc.Claim, error)

Claim will return the metadata for the channel.

func (*Channel) Keys

func (l *Channel) Keys() (*btcec.PrivateKey, *btcec.PublicKey)

Keys will return the private and public key of a channel

func (*Channel) Sign

func (l *Channel) Sign(data []byte) (string, string, error)

Sign will sign the data with the channels private key returning the signature and a timestamp it was signed. This is used in the signature itself so it is required input to verify the signature. This ensures someone cannot fudge a timestamp of a signature and allows for expiration times of signatures.

Jump to

Keyboard shortcuts

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