 	}
 
 	func archive(block: SQLBlock) throws {
+		var nonce = block.nonce
+
 		let insertStatement = SQLStatement.insert(SQLInsert(
 			orReplace: false,
 			into: self.table,

			else {
				fatalError("invalid payload")
			}
			block.nonce = SQLBlock.NonceType(nonce)
			block.signature = hash
			assert(block.isSignatureValid, "persisted block signature is invalid! \(block)")
			return block
		}
		return nil
	}
}

			values: [[
				.literalBlob(block.signature!.hash),
				.literalInteger(Int(block.index)),
				.literalBlob(Data(bytes: &nonce, count: MemoryLayout<SQLBlock.NonceType>.size)),
				.literalBlob(block.previous.hash),
				.literalBlob(block.payloadData)
			]]))
