func (st *StampIssuer) UnmarshalBinary(buf []byte) error {
	st.label = toString(buf[:32])
	st.keyID = toString(buf[32:64])
	st.batchID = buf[64:96]
	st.batchDepth = buf[96]
	st.bucketDepth = buf[97]
	st.buckets = make([]uint32, 1<<st.bucketDepth)
	// not using lock as unmarshal is init
	for i := range st.buckets {
		offset := 98 + i*4
		st.buckets[i] = binary.BigEndian.Uint32(buf[offset : offset+4])
	}
	return nil
}
// UnmarshalBinary parses a serialised StampIssuer into the receiver struct.
UnmarshalBinary parses a serialised StampIssuer into the receiver struct.
// UnmarshalBinary parses a serialised StampIssuer into the receiver struct .
func (st *StampIssuer) UnmarshalBinary(buf []byte) error {
	st.label = toString(buf[:32])
	st.keyID = toString(buf[32:64])
	st.batchID = buf[64:96]
	st.batchDepth = buf[96]
	st.bucketDepth = buf[97]
	st.buckets = make([]uint32, 1<<st.bucketDepth)
	for i := range st.buckets {
		offset := 98 + i*4
		st.buckets[i] = binary.BigEndian.Uint32(buf[offset : offset+4])
	}
	return nil
}
func ( st * StampIssuer ) UnmarshalBinary ( buf [ ] byte ) error { st . label = toString ( buf [ : 32 ] ) st . keyID = toString ( buf [ 32 : 64 ] ) st . batchID = buf [ 64 : 96 ] st . batchDepth = buf [ 96 ] st . bucketDepth = buf [ 97 ] st . buckets = make ( [ ] uint32 , 1 << st . bucketDepth ) for i := range st . buckets { offset := 98 + i * 4 st . buckets [ i ] = binary . BigEndian . Uint32 ( buf [ offset : offset + 4 ] ) } return nil }
UnmarshalBinary parses a serialised StampIssuer into the receiver struct.
UnmarshalBinary parses a serialised StampIssuer into the receiver struct .
// not using lock as unmarshal is init