Documentation ¶
Overview ¶
Package soc provides the single-owner chunk implementation and validator.
Index ¶
Constants ¶
View Source
const ( IdSize = 32 SignatureSize = 65 )
Variables ¶
This section is empty.
Functions ¶
func CreateAddress ¶
CreateAddress creates a new SOC address from the id and the ethereum address of the owner.
Types ¶
type SOC ¶ added in v0.5.3
type SOC struct {
// contains filtered or unexported fields
}
SOC wraps a content-addressed chunk.
func NewSigned ¶ added in v0.5.3
NewSigned creates a single-owner chunk based on already signed data.
func (*SOC) Sign ¶ added in v0.5.3
Sign signs a SOC using the given signer. It returns a signed SOC chunk ready for submission to the network.
func (*SOC) WrappedChunk ¶ added in v0.5.3
WrappedChunk returns the chunk wrapped by the SOC.
Click to show internal directories.
Click to hide internal directories.