Questions tagged [validator]
For questions about transaction validation. A validator ensures that a submitted transaction is correct and can be added to the ledger.
37
questions
0
votes
1
answer
120
views
Error submitting a transaction (Error: PPViewHashesDontMatch)
I hope I can get help from someone on here. I built a minting transaction on preprod using Lucid that uses a validator that always pass, and I am stuck with this error:
error: Uncaught (in promise) ...
0
votes
0
answers
39
views
Validating ecdsa signature in aiken
Im trying to let my validator validate my ecdsa signature yet I get a weird JSON error:
Uncaught (in promise) SyntaxError: Unexpected non-whitespace character after JSON at position 4
My Validator for ...
0
votes
1
answer
41
views
UnsafeFromData instance for custom type
I want to use a custom type for one of my policy parameters, which will be applied by a tool like Lucid.
Example of param:
data CoinParams = CoinParams {
policyOwner :: PubKeyHash,
tokenName ::...
0
votes
2
answers
179
views
Lucid Error "End of input in bytes"
I am running the simple vesting script from PPP for the first time with Lucid and I continuosly get an error which doesn't give me much to understand what could realistically be the source of.
the ...
1
vote
1
answer
39
views
Are validator script parameters secure? (lobster challenge)
Since script params are compiled into the validator, this means that if you have the script cbor you can see what the param value is, right? Hence they would not be suitable to store data you don't ...
1
vote
1
answer
78
views
Creating a malicious validator script whose hash equals that of an existing validator script
what is preventing an adversary to find (in many hours) a nonce that would make a malicious validator script to have the same hash and address of my validator script, and then submit it with cardano-...
0
votes
1
answer
87
views
Limit the number for each Token (AssetName) within one Currency Symbol (Policy ID)
is there any way to limit number for each tokens within one minting policy, in Plutus validator?
For example for policy ab12 I want to allow users minting tokens, in different transactions. Сan the ...
0
votes
1
answer
48
views
Opportunity for theft of funds in Martify marketplace
I am some kinda embarrassed by "mkBuyValidator" in Martify Marketplace on-chain code . For buyer there is only one check for token transfer (on line 68):
(valueOf (valuePaidTo info sig) (...
1
vote
3
answers
105
views
Is it possible to call the `mkValidator` inside the same / another `mkValidator` function for script composibility?
Supposed I have a validator below, checking only if the output value is locked by the same script.
{-# INLINEABLE mkValidator #-}
mkValidator :: TestingParam -> TestingDatum -> TestingRedeemer -&...
4
votes
1
answer
255
views
Rising trend in blocks missing: what could be the reason? Should we worry?
I came across this fantastic real-time data-visualization site for Cardano: Cardano Blockchain Insights.
My question is: why have the missing blocks increased by so much? Epoch 347 is due to some ...
0
votes
1
answer
49
views
Can I Use TraceIfFalse in deployment?
So I use traceIfFalse to test a lot of my smart contracts now I'm ready to deploy some of then and I want to know if this is for development only or if its fine to have a smart contract use this ...
0
votes
1
answer
42
views
How to have a contract on chain for extended periods of time?
In PPP Larz explains that there's a limit to how long a contract can remain on chain, what is that limit and how do I go about extending it?
1
vote
1
answer
26
views
Do I Need A Contract Monad For a Burn Wallet?
If I make a script address to be a burn address, I end up having a validator that never validates i.e. returns false all the time. Does a Smart Contract that never can validate need an instance of the ...
2
votes
0
answers
41
views
Whats a Good Example of Interconnected Smart Contracts?
In the Contract Monad we have the use of w s e a. Now w is used to connect contracts is there a good example of how this is done, in particular how to validate a contract using the w of another ...
0
votes
3
answers
108
views
How Can You Prevent A Burn Address From Polluting The Cardano Ledger?
Making a Burn Address on the blockchain is currently done by using a script address with a validator that always returns False and so never validates.
This ties up ADA and causes the size of the ...