common/src/main/java/lighthouse/protocol/LHUtils.java
public static Sha256Hash hashFromPledge(LHProtos.Pledge pledge) {
        if (pledge.getPledgeDetails().hasOrigHash())
            return Sha256Hash.wrap(pledge.getPledgeDetails().getOrigHash().toByteArray());
        else
            return Sha256Hash.of(pledge.toByteArray());
    }
/** Either hashes the given pledge protobuf or returns the hash it claims to have been originally. */
Either hashes the given pledge protobuf or returns the hash it claims to have been originally.
Either hashes the given pledge protobuf or returns the hash it claims to have been originally .
public static Sha256Hash hashFromPledge(LHProtos.Pledge pledge) {
        if (pledge.getPledgeDetails().hasOrigHash())
            return Sha256Hash.wrap(pledge.getPledgeDetails().getOrigHash().toByteArray());
        else
            return Sha256Hash.of(pledge.toByteArray());
    }
public static Sha256Hash hashFromPledge ( LHProtos . Pledge pledge ) { if ( pledge . getPledgeDetails ( ) . hasOrigHash ( ) ) return Sha256Hash . wrap ( pledge . getPledgeDetails ( ) . getOrigHash ( ) . toByteArray ( ) ) ; else return Sha256Hash . of ( pledge . toByteArray ( ) ) ; }
Either hashes the given pledge protobuf or returns the hash it claims to have been originally.
Either hashes the given pledge protobuf or returns the hash it claims to have been originally .