Skip to content

Array of numbers should be allowed for _sd in IDisclosureFrame #2598

@mikecat

Description

@mikecat

Currently, only strings are allowed for elements of the array _sd in IDisclosureFrame.

export interface IDisclosureFrame {
_sd?: string[]
_sd_decoy?: number
[x: string]: string[] | number | IDisclosureFrame | undefined
}

However, storing numbers there seems mandatory for enabling selective disclosure of elements of arrays.

https://github.com/openwallet-foundation/sd-jwt-js/blob/213de7e85b9820ca638ba3362fe4deee808e236e/packages/core/src/sdjwt.ts#L280-L284

Therefore, storing numbers should be allowed as elements of the array _sd in IDisclosureFrame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions