org.mpisws.p2p.transport.peerreview.audit
Class LogSnippet
java.lang.Object
org.mpisws.p2p.transport.peerreview.audit.LogSnippet
public class LogSnippet
- extends Object
long long firstSeq
byte extInfoLen
[extInfo follows]
hash baseHash
--entry begin-- // 1 or more of these entries follow
char type
char sizeCode // 0=hashed, 1-FD=size, FE=32-bit size follows, FF=16-bit size follows
{short/int size}
char content[]
char nextSeqCode // 0=+1, 1=(idx=0,us+=1), 2=(idx=0,us+=2), ..., FF=full seq [does not exist for the last one]
{long long seq}
--entry end--
- Author:
- Jeff Hoye
entries
public List<SnippetEntry> entries
LogSnippet
public LogSnippet(byte[] baseHash,
List<SnippetEntry> entries)
LogSnippet
public LogSnippet(InputBuffer buf,
int hashSize)
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
serialize
public void serialize(OutputBuffer buf)
throws IOException
- Throws:
IOException
getBaseHash
public byte[] getBaseHash()
getFirstSeq
public long getFirstSeq()
getExtInfo
public Object getExtInfo()
checkHashChainContains
public boolean checkHashChainContains(byte[] keyNodeHash,
long keyNodeSeq,
HashProvider transport,
Logger logger)
Copyright © 2010. All Rights Reserved.