com.wavesplatform.protobuf.block.PBBlockSerialization.scala Maven / Gradle / Ivy
The newest version!
package com.wavesplatform.protobuf.block
import com.google.protobuf.ByteString
import com.wavesplatform.protobuf.utils.PBUtils
private[block] object PBBlockSerialization {
def signedBytes(block: PBBlock): Array[Byte] = {
PBUtils.encodeDeterministic(block)
}
def unsignedBytes(block: PBBlock): Array[Byte] = {
PBUtils.encodeDeterministic(block.withSignature(ByteString.EMPTY))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy