}
function startValidation(event) {
+ const size = document.getElementById('size')
const api = document.getElementById('api')?.value
+ if (api === 'nano25519 with bulk block verification') {
+ size.value = nano25519.constants.MAX_VERIFY_BLOCKS
+ size.dataset.value = 1
+ size.disabled = true
+ } else {
+ size.value = 100
+ size.dataset.value = 0
+ size.disabled = false
+ }
const signature = document.getElementById('signature')?.value
const blockHash = document.getElementById('blockHash')?.value
const publicKey = document.getElementById('publicKey')?.value
const api = document.getElementById('api')
const size = document.getElementById('size')
const runs = document.getElementById('runs')
- test(api.value, +size.value, +runs.value)
+ test(api.value, +size.dataset.value ? 1 : +size.value, +runs.value)
.then(() => {
event.target.disabled = false
})