mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-09 17:13:08 +00:00
setup getter
This commit is contained in:
parent
ff218aa1a7
commit
4b68b5288d
@ -15,7 +15,6 @@ export function toRLNSignal(contentTopic: string, msg: IMessage): Uint8Array {
|
||||
|
||||
export class RlnMessage<T extends IDecodedMessage> implements IDecodedMessage {
|
||||
public pubSubTopic = "";
|
||||
public ephemeral = false;
|
||||
|
||||
constructor(
|
||||
public rlnInstance: RLNInstance,
|
||||
@ -53,6 +52,10 @@ export class RlnMessage<T extends IDecodedMessage> implements IDecodedMessage {
|
||||
return this.msg.timestamp;
|
||||
}
|
||||
|
||||
get ephemeral(): boolean | undefined {
|
||||
return this.msg.ephemeral;
|
||||
}
|
||||
|
||||
get epoch(): number | undefined {
|
||||
const bytes = this.msg.rateLimitProof?.epoch;
|
||||
if (!bytes) return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user