MCPcopy Create free account
hub / github.com/0xsequence/czip / WriteSequenceBranchSignaturePart

Method WriteSequenceBranchSignaturePart

compressor/encode.go:760–769  ·  view source on GitHub ↗
(branch []byte)

Source from the content-addressed store, hash-verified

758}
759
760func (buf *Buffer) WriteSequenceBranchSignaturePart(branch []byte) (EncodeType, error) {
761 if len(branch) == 0 {
762 return Stateless, fmt.Errorf("branch is empty")
763 }
764
765 buf.commitUint(FLAG_SEQUENCE_BRANCH)
766 buf.end([]byte{}, Stateless)
767
768 return buf.WriteSequenceSignatureTree(branch)
769}
770
771func (buf *Buffer) WriteSequenceDynamicSignaturePart(address []byte, weight uint, signature []byte) (EncodeType, error) {
772 if weight > 255 {

Callers 2

extras.goFile · 0.80

Calls 3

commitUintMethod · 0.95
endMethod · 0.95

Tested by

no test coverage detected