(branch []byte)
| 758 | } |
| 759 | |
| 760 | func (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 | |
| 771 | func (buf *Buffer) WriteSequenceDynamicSignaturePart(address []byte, weight uint, signature []byte) (EncodeType, error) { |
| 772 | if weight > 255 { |
no test coverage detected