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 ¶
type SOC struct {
// contains filtered or unexported fields
}
SOC wraps a content-addressed chunk.
func (*SOC) Sign ¶
Sign signs a SOC using the given signer. It returns a signed SOC chunk ready for submission to the network.
func (*SOC) WrappedChunk ¶
WrappedChunk returns the chunk wrapped by the SOC.
Click to show internal directories.
Click to hide internal directories.