linked_data

package
v0.0.0-...-0872f49 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleCompositionTx

func AssembleCompositionTx(composition Data, privkey crypto.PrivateKey, signatures []string, splits []int) (Data, error)

func AssembleLicenseTx

func AssembleLicenseTx(license Data, privkey crypto.PrivateKey, pubkey crypto.PublicKey) (Data, error)

func AssembleRecordingTx

func AssembleRecordingTx(privkey crypto.PrivateKey, recording Data, signatures []string, splits []int) (Data, error)

func AssembleRightTransferTx

func AssembleRightTransferTx(consumeId string, recipientId string, recipientKey crypto.PublicKey, rightToId, senderId string, senderKey crypto.PublicKey, transferAmount int) (Data, []string, error)

func AssembleRightTx

func AssembleRightTx(percentShares int, previousRightId string, privkey crypto.PrivateKey, pubkey crypto.PublicKey, recipientId, rightToId, senderId string) (Data, error)

func CheckArtist

func CheckArtist(artistId, recordingId string) (Data, crypto.PublicKey, error)

func CheckComposer

func CheckComposer(composerId, compositionId string) (Data, crypto.PublicKey, error)

func CheckLicenseHolder

func CheckLicenseHolder(licenseHolderId, licenseId string) (Data, crypto.PublicKey, error)

func CheckOutputOwnerAfter

func CheckOutputOwnerAfter(output Data) (crypto.PublicKey, error)

func CheckPublisher

func CheckPublisher(compositionId, publisherId string) (Data, crypto.PublicKey, error)

func CheckRecordLabel

func CheckRecordLabel(recordingId, recordLabelId string) (Data, crypto.PublicKey, error)

func CheckRightHolder

func CheckRightHolder(rightHolderId, rightId string) (Data, crypto.PublicKey, error)

func CheckTxOwnerBefore

func CheckTxOwnerBefore(tx Data) (crypto.PublicKey, error)

func CheckTxOwnersBefore

func CheckTxOwnersBefore(tx Data, n int) ([]crypto.PublicKey, error)

func ProveArtist

func ProveArtist(artistId, challenge string, privkey crypto.PrivateKey, recordingId string) (crypto.Signature, error)

func ProveComposer

func ProveComposer(challenge, composerId string, compositionId string, privkey crypto.PrivateKey) (crypto.Signature, error)

func ProveLicenseHolder

func ProveLicenseHolder(challenge, licenseHolderId, licenseId string, privkey crypto.PrivateKey) (crypto.Signature, error)

func ProvePublisher

func ProvePublisher(challenge, compositionId string, privkey crypto.PrivateKey, publisherId string) (crypto.Signature, error)

func ProveRecordLabel

func ProveRecordLabel(challenge string, privkey crypto.PrivateKey, recordingId, recordLabelId string) (crypto.Signature, error)

func ProveRightHolder

func ProveRightHolder(challenge string, privkey crypto.PrivateKey, rightHolderId, rightId string) (crypto.Signature, error)

func ValidateCompositionId

func ValidateCompositionId(compositionId string) (Data, error)

func ValidateCompositionTx

func ValidateCompositionTx(compositionTx Data) (err error)

func ValidateLicenseId

func ValidateLicenseId(licenseId string) (Data, error)

func ValidateLicenseTx

func ValidateLicenseTx(tx Data) (err error)

func ValidateRecordingId

func ValidateRecordingId(recordingId string) (Data, error)

func ValidateRecordingTx

func ValidateRecordingTx(recordingTx Data) (err error)

func ValidateRightId

func ValidateRightId(rightId string) (Data, error)

func ValidateRightTx

func ValidateRightTx(tx Data) (err error)

func ValidateTransferId

func ValidateTransferId(transferId string) (Data, error)

func ValidateTransferTx

func ValidateTransferTx(tx Data) error

func ValidateUserId

func ValidateUserId(id string) (Data, error)

func ValidateUserTx

func ValidateUserTx(tx Data) (err error)

func VerifyArtist

func VerifyArtist(artistId, challenge string, recordingId string, sig crypto.Signature) error

func VerifyComposer

func VerifyComposer(challenge, composerId, compositionId string, sig crypto.Signature) error

func VerifyLicenseHolder

func VerifyLicenseHolder(challenge, licenseHolderId, licenseId string, sig crypto.Signature) error

func VerifyPublisher

func VerifyPublisher(challenge, compositionId, publisherId string, sig crypto.Signature) error

func VerifyRecordLabel

func VerifyRecordLabel(challenge string, recordingId, recordLabelId string, sig crypto.Signature) error

func VerifyRightHolder

func VerifyRightHolder(challenge string, rightHolderId, rightId string, sig crypto.Signature) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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