module pyth::price_identifier { use std::vector; use pyth::error; const IDENTIFIER_BYTES_LENGTH: u64 = 32; struct PriceIdentifier has copy, drop, store { bytes: vector, } public fun from_byte_vec(bytes: vector): PriceIdentifier { assert!(vector::length(&bytes) == IDENTIFIER_BYTES_LENGTH, error::incorrect_identifier_length()); PriceIdentifier { bytes: bytes } } public fun get_bytes(price_identifier: &PriceIdentifier): vector { price_identifier.bytes } }