// Numbas version: finer_feedback_settings {"name": "Protocol Accounting and Fee Mechanics \u2014 Multilingual Assessment III (EN/IT/JA/KO/AR/PL)", "metadata": {"description": "

Six advanced, specification-based numerical exercises on Ethereum blob-gas state and calldata floors, Bitcoin SegWit weight, Solana priority fees, Lightning forwarding fees, and ERC-4626 rounding. Prepared for open education by Mushegh Manukyan, Founder & CEO of ARMCP (https://armcp.net/). CC BY 4.0. AI-assisted drafting and translation were used; formulas and test vectors were checked against the cited primary specifications.

", "licence": "Creative Commons Attribution 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Specification-Based Protocol Accounting", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], []], "questions": [{"name": "Audyt zaokr\u0105glenia w d\u00f3\u0142 w convertToShares ERC-4626", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["blockchain", "ERC-4626", "Ethereum", "integer arithmetic", "rounding", "tokenized vaults"], "metadata": {"description": "

Deterministyczne \u0107wiczenie o zaokr\u0105glaniu w dó\u0142 w convertToShares zgodnie z ERC-4626, oparte na dok\u0142adnej arytmetyce ca\u0142kowitej i hipotetycznym stanie skarbca.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Hipotetyczny skarbiec ERC-4626 zarz\u0105dza 1 000 003 jednostkami aktywa i ma totalSupply równy 800 000 udzia\u0142ów. W tym \u0107wiczeniu jego idealna konwersja proporcjonalna jest zdefiniowana jako convertToShares(assets) = floor(assets × totalSupply / totalAssets). Ile udzia\u0142ów zwróci convertToShares(123 456)?

", "advice": "

Rozwi\u0105zanie

\n

Iloczyn wynosi 123 456 × 800 000 = 98 764 800 000. Dzielenie ca\u0142kowite przez 1 000 003 daje iloraz 98 764 i reszt\u0119 503 708. ERC-4626 wymaga, aby convertToShares zaokr\u0105gla\u0142o w dó\u0142, wi\u0119c wynikiem jest 98 764 udzia\u0142ów. Nie nale\u017cy zaokr\u0105gla\u0107 do najbli\u017cszej liczby.

\n

\u0179ród\u0142o pierwotne

\n\n

Niezale\u017cny materia\u0142 edukacyjny przygotowany przez Mushegha Manukyana, Founder & CEO ARMCP. CC BY 4.0. To nie jest porada inwestycyjna.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Liczba udzia\u0142\u00f3w", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Podaj liczb\u0119 udzia\u0142ów jako liczb\u0119 ca\u0142kowit\u0105.

", "minValue": "98764", "maxValue": "98764", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "98764", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "\u062a\u062f\u0642\u064a\u0642 \u0631\u0633\u0648\u0645 \u0627\u0644\u062a\u0648\u062c\u064a\u0647 \u0641\u064a \u0634\u0628\u0643\u0629 Lightning \u0628\u0648\u062d\u062f\u0627\u062a millisatoshi", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["Bitcoin", "blockchain", "BOLT 7", "Lightning Network", "millisatoshi", "routing fees"], "metadata": {"description": "

\u062a\u0645\u0631\u064a\u0646 \u0639\u062f\u062f\u064a \u062d\u062a\u0645\u064a \u064a\u0633\u062a\u0646\u062f \u0625\u0644\u0649 BOLT 7 \u0644\u062a\u062f\u0642\u064a\u0642 \u0627\u0644\u0631\u0633\u0648\u0645 \u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0629 \u0648\u0627\u0644\u062a\u0646\u0627\u0633\u0628\u064a\u0629 \u0644\u0639\u0642\u062f\u0629 Lightning\u060c \u0645\u0639 \u062a\u0637\u0628\u064a\u0642 \u0627\u0644\u0642\u0633\u0645\u0629 \u0627\u0644\u0635\u062d\u064a\u062d\u0629 \u0628\u0648\u062d\u062f\u0629 millisatoshi.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

\u0633\u062a\u0642\u0648\u0645 \u0639\u0642\u062f\u0629 Lightning \u0628\u062a\u0645\u0631\u064a\u0631 \u0645\u0628\u0644\u063a \u0642\u062f\u0631\u0647 7,654,321 millisatoshi. \u062a\u0639\u0644\u0646 \u0627\u0644\u0639\u0642\u062f\u0629 \u0631\u0633\u0645\u0627\u064b \u0623\u0633\u0627\u0633\u064a\u0627\u064b \u0642\u062f\u0631\u0647 350 millisatoshi \u0648\u0631\u0633\u0645\u0627\u064b \u062a\u0646\u0627\u0633\u0628\u064a\u0627\u064b \u0642\u062f\u0631\u0647 1,200 \u062c\u0632\u0621 \u0641\u064a \u0627\u0644\u0645\u0644\u064a\u0648\u0646. \u0627\u0633\u062a\u062e\u062f\u0645 \u0642\u0627\u0639\u062f\u0629 BOLT 7: \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0623\u062f\u0646\u0649 = \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0623\u0633\u0627\u0633\u064a + floor(\u0627\u0644\u0645\u0628\u0644\u063a \u0627\u0644\u0645\u064f\u0645\u0631\u0651\u064e\u0631 × \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u062a\u0646\u0627\u0633\u0628\u064a / 1,000,000). \u0627\u062d\u0633\u0628 \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0623\u062f\u0646\u0649 \u0628\u0648\u062d\u062f\u0629 millisatoshi.

", "advice": "

\u0627\u0644\u062d\u0644

\n

\u0627\u0644\u062c\u0632\u0621 \u0627\u0644\u062a\u0646\u0627\u0633\u0628\u064a = floor(7,654,321 × 1,200 / 1,000,000) = floor(9,185.1852) = 9,185 millisatoshi. \u0628\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0623\u0633\u0627\u0633\u064a: 9,185 + 350 = 9,535 millisatoshi. \u062a\u064f\u0637\u0628\u0651\u064e\u0642 \u0627\u0644\u0642\u0633\u0645\u0629 \u0627\u0644\u0635\u062d\u064a\u062d\u0629 \u0639\u0644\u0649 \u0627\u0644\u062c\u0632\u0621 \u0627\u0644\u062a\u0646\u0627\u0633\u0628\u064a \u0623\u0648\u0644\u0627\u064b\u060c \u062b\u0645 \u064a\u0636\u0627\u0641 \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0623\u0633\u0627\u0633\u064a.

\n

\u0627\u0644\u0645\u0635\u062f\u0631 \u0627\u0644\u0623\u0648\u0644\u064a

\n\n

\u0645\u0627\u062f\u0629 \u062a\u0639\u0644\u064a\u0645\u064a\u0629 \u0645\u0633\u062a\u0642\u0644\u0629 \u0623\u0639\u062f\u0651\u0647\u0627 Mushegh Manukyan\u060c \u0627\u0644\u0645\u0624\u0633\u0633 \u0648\u0627\u0644\u0631\u0626\u064a\u0633 \u0627\u0644\u062a\u0646\u0641\u064a\u0630\u064a \u0644\u0640 ARMCP. \u0627\u0644\u062a\u0631\u062e\u064a\u0635 CC BY 4.0. \u0644\u064a\u0633\u062a \u0646\u0635\u064a\u062d\u0629 \u0627\u0633\u062a\u062b\u0645\u0627\u0631\u064a\u0629.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "\u0627\u0644\u062d\u062f \u0627\u0644\u0623\u062f\u0646\u0649 \u0644\u0631\u0633\u0648\u0645 \u0627\u0644\u062a\u0648\u062c\u064a\u0647", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

\u0623\u062f\u062e\u0644 \u0627\u0644\u0631\u0633\u0645 \u0628\u0648\u062d\u062f\u0629 millisatoshi \u0643\u0639\u062f\u062f \u0635\u062d\u064a\u062d.

", "minValue": "9535", "maxValue": "9535", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "9535", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Solana \ub808\uac70\uc2dc/v0 \ud2b8\ub79c\uc7ad\uc158 \uc218\uc218\ub8cc\uc758 \uc62c\ub9bc \uac80\uc99d", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["blockchain", "compute units", "priority fee", "protocol accounting", "Solana", "transaction fees"], "metadata": {"description": "

Solana \ub808\uac70\uc2dc/v0 \ud2b8\ub79c\uc7ad\uc158\uc758 \uae30\ubcf8 \uc218\uc218\ub8cc\uc640 compute-unit \uc6b0\uc120 \uc218\uc218\ub8cc\ub97c \uacf5\uc2dd \ubc18\uc62c\ub9bc \uaddc\uce59\uc5d0 \ub530\ub77c \uac80\uc99d\ud558\ub294 \uacb0\uc815\ub860\uc801 \uc218\uce58 \uc5f0\uc2b5\uc785\ub2c8\ub2e4.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

\ub808\uac70\uc2dc \ub610\ub294 v0 \ud615\uc2dd\uc758 Solana \ud2b8\ub79c\uc7ad\uc158\uc5d0 \ud2b8\ub79c\uc7ad\uc158 \uc11c\uba85 2\uac1c\uac00 \uc788\uace0 \ubcc4\ub3c4\uc758 precompile signature-verification instruction\uc740 \uc5c6\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\uc5d0\uc11c lamports_per_signature\ub97c 5,000\uc73c\ub85c \ub450\uace0, \uc694\uccad\ud55c compute-unit \ud55c\ub3c4\ub294 300,000 CU, \uac00\uaca9\uc740 CU\ub2f9 7,501 micro-lamports\uc785\ub2c8\ub2e4. \uc6b0\uc120 \uc218\uc218\ub8cc = ceil(CU \uac00\uaca9 × CU \ud55c\ub3c4 / 1,000,000), \ucd1d \uc218\uc218\ub8cc = \uae30\ubcf8 \uc218\uc218\ub8cc + \uc6b0\uc120 \uc218\uc218\ub8cc\ub85c \uacc4\uc0b0\ud569\ub2c8\ub2e4. \ucd1d \uc218\uc218\ub8cc\ub97c lamports \ub2e8\uc704\ub85c \uad6c\ud558\uc2ed\uc2dc\uc624.

", "advice": "

\ud480\uc774

\n

\uae30\ubcf8 \uc218\uc218\ub8cc = 2 × 5,000 = 10,000 lamports. \uacf1\uc740 7,501 × 300,000 = 2,250,300,000 micro-lamports\uc785\ub2c8\ub2e4. \uc774\ub97c 1,000,000\uc73c\ub85c \ub098\ub204\uba74 2,250.3\uc774\ubbc0\ub85c \uc62c\ub9bc\ud55c \uc6b0\uc120 \uc218\uc218\ub8cc\ub294 2,251 lamports\uc785\ub2c8\ub2e4. \ucd1d \uc218\uc218\ub8cc = 10,000 + 2,251 = 12,251 lamports\uc785\ub2c8\ub2e4. \uc6b0\uc120 \uc218\uc218\ub8cc\ub294 \uc2e4\uc81c \uc0ac\uc6a9\ub7c9\uc774 \uc544\ub2c8\ub77c \uc694\uccad\ud55c CU \ud55c\ub3c4\ub97c \uae30\uc900\uc73c\ub85c \ud569\ub2c8\ub2e4.

\n

\uacf5\uc2dd \uc790\ub8cc

\n\n

Mushegh Manukyan, Founder & CEO of ARMCP\uac00 \uc900\ube44\ud55c \ub3c5\ub9bd \uad50\uc721 \uc790\ub8cc\uc785\ub2c8\ub2e4. CC BY 4.0. \ud22c\uc790 \uc870\uc5b8\uc774 \uc544\ub2d9\ub2c8\ub2e4.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "\ucd1d \ud2b8\ub79c\uc7ad\uc158 \uc218\uc218\ub8cc", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

\ucd1d \uc218\uc218\ub8cc\ub97c \uc815\uc218 lamports \ub2e8\uc704\ub85c \uc785\ub825\ud558\uc2ed\uc2dc\uc624.

", "minValue": "12251", "maxValue": "12251", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "12251", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "EIP-7623 \u306e calldata \u30ac\u30b9\u4e0b\u9650\u3092\u76e3\u67fb\u3059\u308b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["blockchain", "calldata", "EIP-7623", "Ethereum", "gas accounting", "Pectra"], "metadata": {"description": "

EIP-7623 \u306b\u57fa\u3065\u304d\u3001calldata \u306e token \u6570\u3001\u6a19\u6e96\u30ac\u30b9\u5206\u5c90\u3001\u4e0b\u9650\u5206\u5c90\u3092\u6bd4\u8f03\u3059\u308b\u6c7a\u5b9a\u8ad6\u7684\u306a\u6570\u5024\u6f14\u7fd2\u3067\u3059\u3002Pectra \u53d6\u5f15\u306e\u30ac\u30b9\u4f1a\u8a08\u3092\u4ed5\u69d8\u304b\u3089\u691c\u8a3c\u3057\u307e\u3059\u3002

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u4f5c\u6210\u3067\u306f\u306a\u3044 Pectra \u53d6\u5f15\u306b\u3001\u30bc\u30ed\u30d0\u30a4\u30c8\u304c 120 \u500b\u3001\u975e\u30bc\u30ed\u30d0\u30a4\u30c8\u304c 70 \u500b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u8fd4\u91d1\u63a7\u9664\u5f8c\u306e EVM \u5b9f\u884c\u30ac\u30b9\u306f 900 \u3067\u3059\u3002EIP-7623 \u306b\u5f93\u3044\u3001tokens = zero_bytes + 4 × nonzero_bytes\u3001\u6a19\u6e96\u5206\u5c90 = 4 × tokens + execution_gas_used\u3001\u4e0b\u9650\u5206\u5c90 = 10 × tokens\u3001tx.gasUsed = 21,000 + max(\u6a19\u6e96\u5206\u5c90, \u4e0b\u9650\u5206\u5c90) \u3068\u3057\u307e\u3059\u3002tx.gasUsed \u3092\u6c42\u3081\u3066\u304f\u3060\u3055\u3044\u3002

", "advice": "

\u89e3\u7b54

\n

tokens = 120 + 4 × 70 = 400\u3002\u6a19\u6e96\u5206\u5c90\u306f 4 × 400 + 900 = 2,500\u3002\u4e0b\u9650\u5206\u5c90\u306f 10 × 400 = 4,000\u3002\u5927\u304d\u3044\u65b9\u306f 4,000 \u306a\u306e\u3067\u3001tx.gasUsed = 21,000 + 4,000 = 25,000\u3002calldata \u306e tokens \u3092\u5148\u306b\u8a08\u7b97\u3057\u3001\u4e8c\u3064\u306e\u5206\u5c90\u3092\u6bd4\u8f03\u3057\u3066\u304b\u3089\u57fa\u672c\u30ac\u30b9\u3092\u52a0\u3048\u307e\u3059\u3002

\n

\u4e00\u6b21\u8cc7\u6599

\n\n

Mushegh Manukyan\uff08ARMCP Founder & CEO\uff09\u304c\u4f5c\u6210\u3057\u305f\u72ec\u7acb\u6559\u80b2\u8cc7\u6599\u3002CC BY 4.0\u3002\u6295\u8cc7\u52a9\u8a00\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "\u53d6\u5f15\u306e\u30ac\u30b9\u4f7f\u7528\u91cf", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

tx.gasUsed \u3092\u6574\u6570\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002

", "minValue": "25000", "maxValue": "25000", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "25000", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Audit del peso e della dimensione virtuale di una transazione SegWit", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["BIP 141", "Bitcoin", "blockchain", "SegWit", "transaction weight", "vbyte"], "metadata": {"description": "

Un esercizio deterministico basato su BIP 141 per calcolare il peso e la dimensione virtuale di una transazione Bitcoin SegWit, con arrotondamento esplicito in vbyte.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Una transazione Bitcoin ha una dimensione base, con i dati witness rimossi, di 182 byte e una dimensione totale, witness incluso, di 290 byte. Secondo BIP 141, il peso è 3 × dimensione_base + dimensione_totale e la dimensione virtuale è ceil(peso / 4). Calcola la dimensione virtuale in vbyte.

", "advice": "

Soluzione svolta

\n

Peso = 3 × 182 + 290 = 546 + 290 = 836 unità di peso. Dimensione virtuale = ceil(836 / 4) = ceil(209) = 209 vbyte. Si calcola prima il peso BIP 141 e solo dopo si divide per quattro, arrotondando verso l’alto.

\n

Fonte primaria

\n\n

Risorsa educativa indipendente preparata da Mushegh Manukyan, Founder & CEO di ARMCP. CC BY 4.0. Non costituisce consulenza finanziaria.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Dimensione virtuale della transazione", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Inserisci la dimensione virtuale in vbyte come numero intero.

", "minValue": "209", "maxValue": "209", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "209", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Auditing Pectra Blob-Gas Excess Across a Block Boundary", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "tags": ["blob gas", "blockchain", "EIP-4844", "Ethereum", "Pectra", "protocol accounting"], "metadata": {"description": "

A specification-based numerical audit of Ethereum blob-gas accounting across a block boundary under the historical Pectra parameter set. The learner applies EIP-4844 recurrence semantics and distinguishes the target from the maximum.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Under the historical Pectra / EIP-7691 parameter set (not a claim about later mainnet schedules), GAS_PER_BLOB is 131,072 and the target is 6 blobs, or 786,432 blob-gas units. A parent block has excess_blob_gas = 524,288 and blob_gas_used = 1,179,648. Using the EIP-4844 recurrence child_excess = max(parent_excess + parent_blob_gas_used - target_blob_gas, 0), calculate the child block's excess_blob_gas.

", "advice": "

Worked solution

\n

524,288 + 1,179,648 = 1,703,936. Subtract the Pectra target of 786,432: 1,703,936 - 786,432 = 917,504 blob-gas units. The value is positive, so clamping at zero does not change it. The result equals seven blobs of gas because 7 × 131,072 = 917,504.

\n

Specification sources

\n\n

Independent educational resource prepared by Mushegh Manukyan, Founder & CEO of ARMCP. CC BY 4.0. Not investment advice.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Child block excess_blob_gas", "marks": "10", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Enter the exact integer in blob-gas units.

", "minValue": "917504", "maxValue": "917504", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "917504", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": true, "intro": "", "end_message": "", "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "reviewshowexpectedanswer": true, "showanswerstate": true, "reviewshowfeedback": true, "showactualmark": true, "showtotalmark": true, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Mushegh Manukyan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/39968/"}], "extensions": [], "custom_part_types": [], "resources": []}