Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 | 33x 33x 33x 26x 26x | import { Binary } from 'cafe-utility'
import { FeedIndex, Identifier, Topic } from '../utils/typed-bytes'
export function makeFeedIdentifier(topic: Topic, index: FeedIndex | number): Identifier {
index = typeof index === 'number' ? FeedIndex.fromBigInt(BigInt(index)) : index
return new Identifier(Binary.keccak256(Binary.concatBytes(topic.toUint8Array(), index.toUint8Array())))
}
|